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)
commit7f12c8a3670f15ab8592c287279a4050960a7fc6
treea689ab6f193ed03f9ba40cf9c7610b8815d9e378
parent459479da9769b2c91425a8edae16f40f7082a1fc
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