From: Ben Hutchings Date: Fri, 23 Oct 2009 08:33:09 +0000 (+0000) Subject: sfc: Move MTD probe after netdev registration and name allocation X-Git-Tag: v2.6.33-rc1~388^2~715 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5211bb5f72c55d936dab56363ca9755981164bd;p=pandora-kernel.git sfc: Move MTD probe after netdev registration and name allocation The MTD partition is named based on the netdev name, which is set to 'eth%d' before registration. Also, the MTD partition will currently be left registered if netdev registration fails. Fix both these problems by moving the MTD probe after netdev registration. Hold the RTNL to serialise this with the netdev notifier that calls efx_mtd_rename(). Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed