diff options
Diffstat (limited to 'drivers/net/phy/davicom.c')
-rw-r--r-- | drivers/net/phy/davicom.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index d2c08f625a41..0d16c7d9e1bf 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c | |||
@@ -182,20 +182,7 @@ static struct phy_driver dm91xx_driver[] = { | |||
182 | .driver = { .owner = THIS_MODULE,}, | 182 | .driver = { .owner = THIS_MODULE,}, |
183 | } }; | 183 | } }; |
184 | 184 | ||
185 | static int __init davicom_init(void) | 185 | module_phy_driver(dm91xx_driver); |
186 | { | ||
187 | return phy_drivers_register(dm91xx_driver, | ||
188 | ARRAY_SIZE(dm91xx_driver)); | ||
189 | } | ||
190 | |||
191 | static void __exit davicom_exit(void) | ||
192 | { | ||
193 | phy_drivers_unregister(dm91xx_driver, | ||
194 | ARRAY_SIZE(dm91xx_driver)); | ||
195 | } | ||
196 | |||
197 | module_init(davicom_init); | ||
198 | module_exit(davicom_exit); | ||
199 | 186 | ||
200 | static struct mdio_device_id __maybe_unused davicom_tbl[] = { | 187 | static struct mdio_device_id __maybe_unused davicom_tbl[] = { |
201 | { 0x0181b880, 0x0ffffff0 }, | 188 | { 0x0181b880, 0x0ffffff0 }, |