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/cicada.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/cicada.c')
-rw-r--r-- | drivers/net/phy/cicada.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/cicada.c b/drivers/net/phy/cicada.c index b57ce0cc9657..27f5464899d4 100644 --- a/drivers/net/phy/cicada.c +++ b/drivers/net/phy/cicada.c | |||
@@ -129,20 +129,7 @@ static struct phy_driver cis820x_driver[] = { | |||
129 | .driver = { .owner = THIS_MODULE,}, | 129 | .driver = { .owner = THIS_MODULE,}, |
130 | } }; | 130 | } }; |
131 | 131 | ||
132 | static int __init cicada_init(void) | 132 | module_phy_driver(cis820x_driver); |
133 | { | ||
134 | return phy_drivers_register(cis820x_driver, | ||
135 | ARRAY_SIZE(cis820x_driver)); | ||
136 | } | ||
137 | |||
138 | static void __exit cicada_exit(void) | ||
139 | { | ||
140 | phy_drivers_unregister(cis820x_driver, | ||
141 | ARRAY_SIZE(cis820x_driver)); | ||
142 | } | ||
143 | |||
144 | module_init(cicada_init); | ||
145 | module_exit(cicada_exit); | ||
146 | 133 | ||
147 | static struct mdio_device_id __maybe_unused cicada_tbl[] = { | 134 | static struct mdio_device_id __maybe_unused cicada_tbl[] = { |
148 | { 0x000fc410, 0x000ffff0 }, | 135 | { 0x000fc410, 0x000ffff0 }, |