net-next: ax88796: Attach MII bus only when open
authorMichael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Thu, 19 Apr 2018 02:05:20 +0000 (14:05 +1200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 20:11:10 +0000 (16:11 -0400)
commitfd5f375c162807b4e39676c540e26400c091cf4f
treeb78d9244ede7e143eb8b82ab56a6d89cb678c78c
parent7a0907bd399f6f2d40906c6d38ed1814d314ef74
net-next: ax88796: Attach MII bus only when open

Call ax_mii_init in ax_open(), and unregister/remove mdiobus resources
in ax_close().

This is needed to be able to unload the module, as the module is busy
while the MII bus is attached.

Signed-off-by: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c