]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-dpaa2/eth: Delay netdev_register() call
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Wed, 29 Aug 2018 09:42:39 +0000 (04:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Sep 2018 00:16:59 +0000 (17:16 -0700)
commitbc25a1ea5b8924d0a23b29241a2581ef6a9c250f
treea689ab6f193ed03f9ba40cf9c7610b8815d9e378
parentcf78b2f0d1bb331fb4a5be2ed2a03b920c6731c2
staging: fsl-dpaa2/eth: Delay netdev_register() call

Only call netdev_register() at the end of the probe function,
once all other necessary bits and pieces are properly initialized.

We keep the rest of the netdevice initialization code in place,
at the earlier point of the probing sequence, including the
settings previously done in ndo_init.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c