commit | 27cad008406600822ab638980412ceea740e7fc8 | [log] [tgz] |
---|---|---|
author | Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> | Wed Jun 13 12:05:17 2018 +0530 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 14 17:08:03 2018 -0700 |
tree | 69d1f269bfeb0d253f4d90e6eee28c90f42736c4 | |
parent | 087fca595a0a30804fd7896e77ba11aa46e5d708 [diff] |
net: emaclite: Fix MDIO bus unregister bug Since 'has_mdio' flag is not used,sequence insmod->rmmod-> insmod leads to failure as MDIO unregister doesn't happen in .remove(). Fix it by checking MII bus pointer instead. 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>