summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/bcm87xx.c
diff options
context:
space:
mode:
authorJohan Hovold2014-11-11 19:45:59 +0100
committerDavid S. Miller2014-11-12 19:52:53 +0100
commit50fd71507e69eb96d15fa0544f23495838ae2dab (patch)
treef51f31917782679af7e9dbbd445155130323469b /drivers/net/phy/bcm87xx.c
parentnet: phy: replace phy_driver_register calls (diff)
downloadkernel-qcow2-linux-50fd71507e69eb96d15fa0544f23495838ae2dab.tar.gz
kernel-qcow2-linux-50fd71507e69eb96d15fa0544f23495838ae2dab.tar.xz
kernel-qcow2-linux-50fd71507e69eb96d15fa0544f23495838ae2dab.zip
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/bcm87xx.c')
-rw-r--r--drivers/net/phy/bcm87xx.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/phy/bcm87xx.c b/drivers/net/phy/bcm87xx.c
index 799789518e87..1eca20452f03 100644
--- a/drivers/net/phy/bcm87xx.c
+++ b/drivers/net/phy/bcm87xx.c
@@ -216,18 +216,6 @@ static struct phy_driver bcm87xx_driver[] = {
.driver = { .owner = THIS_MODULE },
} };
-static int __init bcm87xx_init(void)
-{
- return phy_drivers_register(bcm87xx_driver,
- ARRAY_SIZE(bcm87xx_driver));
-}
-module_init(bcm87xx_init);
-
-static void __exit bcm87xx_exit(void)
-{
- phy_drivers_unregister(bcm87xx_driver,
- ARRAY_SIZE(bcm87xx_driver));
-}
-module_exit(bcm87xx_exit);
+module_phy_driver(bcm87xx_driver);
MODULE_LICENSE("GPL");