diff options
Diffstat (limited to 'drivers/net/phy/at803x.c')
-rw-r--r-- | drivers/net/phy/at803x.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index fdc1b418fa6a..f80e19ac6704 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c | |||
@@ -352,19 +352,7 @@ static struct phy_driver at803x_driver[] = { | |||
352 | }, | 352 | }, |
353 | } }; | 353 | } }; |
354 | 354 | ||
355 | static int __init atheros_init(void) | 355 | module_phy_driver(at803x_driver); |
356 | { | ||
357 | return phy_drivers_register(at803x_driver, | ||
358 | ARRAY_SIZE(at803x_driver)); | ||
359 | } | ||
360 | |||
361 | static void __exit atheros_exit(void) | ||
362 | { | ||
363 | phy_drivers_unregister(at803x_driver, ARRAY_SIZE(at803x_driver)); | ||
364 | } | ||
365 | |||
366 | module_init(atheros_init); | ||
367 | module_exit(atheros_exit); | ||
368 | 356 | ||
369 | static struct mdio_device_id __maybe_unused atheros_tbl[] = { | 357 | static struct mdio_device_id __maybe_unused atheros_tbl[] = { |
370 | { ATH8030_PHY_ID, 0xffffffef }, | 358 | { ATH8030_PHY_ID, 0xffffffef }, |