From: Patrick McHardy Date: Thu, 12 Jul 2007 02:42:13 +0000 (-0700) Subject: [RTNETLINK]: rtnl_link API simplification X-Git-Tag: v2.6.23-rc1~1109^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d85cba2b272a5201a60966a65a4f8c0bcc0bb71;p=pandora-kernel.git [RTNETLINK]: rtnl_link API simplification All drivers need to unregister their devices in the module unload function. While doing so they must hold the rtnl and atomically unregister the rtnl_link ops as well. This makes the rtnl_link_unregister function that takes the rtnl itself completely useless. Provide default newlink/dellink functions, make __rtnl_link_unregister and rtnl_link_unregister unregister all devices with matching rtnl_link_ops and change the existing users to take advantage of that. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed