From: Moni Shoua Date: Thu, 30 Jul 2015 15:33:28 +0000 (+0300) Subject: net/mlx4: Postpone the registration of net_device X-Git-Tag: omap-for-v4.3/fixes-rc1~52^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79857cd31fe70145ff007d4e968557af342c8ccd;p=pandora-kernel.git net/mlx4: Postpone the registration of net_device The mlx4 network driver was registered in the context of the 'add' function of the core driver (called when HW should be registered). This makes the netdev event NETDEV_REGISTER to be sent in a context where the answer to get_protocol_dev() callback returns NULL. This may be confusing to listeners of netdev events. This patch is a preparation to the patch that implements the get_netdev() callback in the IB/mlx4 driver. Signed-off-by: Moni Shoua Signed-off-by: Doug Ledford --- Reading git-diff-tree failed