]> 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)
commita8fecdc65050c6fa0c42067d87b84110cf370a40
tree6abaa810df26b83b91310c499bed61821ae2729f
parentf209ff14979571189af61b1cd260991e11184b19
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