diff options
author | Johan Hovold <johan@kernel.org> | 2014-11-11 13:45:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-12 13:52:53 -0500 |
commit | 50fd71507e69eb96d15fa0544f23495838ae2dab (patch) | |
tree | f51f31917782679af7e9dbbd445155130323469b /drivers/net/phy/broadcom.c | |
parent | 116dffa0b543a2e560abd62a0b3207b1694f9ab9 (diff) |
net: phy: replace phy_drivers_register calls
Replace module init/exit which only calls phy_drivers_register with
module_phy_driver macro.
Tested using Micrel driver, and otherwise compile-tested only.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/broadcom.c')
-rw-r--r-- | drivers/net/phy/broadcom.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 854f2c9a7b2b..a52afb26421b 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c | |||
@@ -654,20 +654,7 @@ static struct phy_driver broadcom_drivers[] = { | |||
654 | .driver = { .owner = THIS_MODULE }, | 654 | .driver = { .owner = THIS_MODULE }, |
655 | } }; | 655 | } }; |
656 | 656 | ||
657 | static int __init broadcom_init(void) | 657 | module_phy_driver(broadcom_drivers); |
658 | { | ||
659 | return phy_drivers_register(broadcom_drivers, | ||
660 | ARRAY_SIZE(broadcom_drivers)); | ||
661 | } | ||
662 | |||
663 | static void __exit broadcom_exit(void) | ||
664 | { | ||
665 | phy_drivers_unregister(broadcom_drivers, | ||
666 | ARRAY_SIZE(broadcom_drivers)); | ||
667 | } | ||
668 | |||
669 | module_init(broadcom_init); | ||
670 | module_exit(broadcom_exit); | ||
671 | 658 | ||
672 | static struct mdio_device_id __maybe_unused broadcom_tbl[] = { | 659 | static struct mdio_device_id __maybe_unused broadcom_tbl[] = { |
673 | { PHY_ID_BCM5411, 0xfffffff0 }, | 660 | { PHY_ID_BCM5411, 0xfffffff0 }, |