]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: move netcp_register_interface() to after attach module
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Wed, 23 Sep 2015 17:37:07 +0000 (13:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:37:36 +0000 (14:37 -0700)
commitdaf505adcc7df4152cdb6ffe86bb1b16c148d05b
tree6abaa810df26b83b91310c499bed61821ae2729f
parent96b8f8abfa233249e0508d88d77375422b20ef8b
net: netcp: move netcp_register_interface() to after attach module

The netcp interface is not fully initialized before attach the module
to the interface. For example, the tx pipe/rx pipe is initialized
in ethss module as part of attach(). So until this is complete, the
interface can't be registered.  So move registration of interface to
net device outside the current loop that attaches the modules to the
interface.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c