net: emaclite: Fix position of lp->mii_bus assignment
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Wed, 13 Jun 2018 06:35:16 +0000 (12:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 00:08:03 +0000 (17:08 -0700)
commit087fca595a0a30804fd7896e77ba11aa46e5d708
tree706862bd48577e0c1e22315da4e3bcb63f0f2f31
parent4fd44a98ffe0d048246efef67ed640fdf2098a62
net: emaclite: Fix position of lp->mii_bus assignment

To ensure MDIO bus is not double freed in remove() path
assign lp->mii_bus after MDIO bus registration.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c