aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/lxt.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-11-11 13:45:59 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-12 13:52:53 -0500
commit50fd71507e69eb96d15fa0544f23495838ae2dab (patch)
treef51f31917782679af7e9dbbd445155130323469b /drivers/net/phy/lxt.c
parent116dffa0b543a2e560abd62a0b3207b1694f9ab9 (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/lxt.c')
-rw-r--r--drivers/net/phy/lxt.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c
index 9108f3191701..a3a5a703635b 100644
--- a/drivers/net/phy/lxt.c
+++ b/drivers/net/phy/lxt.c
@@ -312,20 +312,7 @@ static struct phy_driver lxt97x_driver[] = {
312 .driver = { .owner = THIS_MODULE,}, 312 .driver = { .owner = THIS_MODULE,},
313} }; 313} };
314 314
315static int __init lxt_init(void) 315module_phy_driver(lxt97x_driver);
316{
317 return phy_drivers_register(lxt97x_driver,
318 ARRAY_SIZE(lxt97x_driver));
319}
320
321static void __exit lxt_exit(void)
322{
323 phy_drivers_unregister(lxt97x_driver,
324 ARRAY_SIZE(lxt97x_driver));
325}
326
327module_init(lxt_init);
328module_exit(lxt_exit);
329 316
330static struct mdio_device_id __maybe_unused lxt_tbl[] = { 317static struct mdio_device_id __maybe_unused lxt_tbl[] = {
331 { 0x78100000, 0xfffffff0 }, 318 { 0x78100000, 0xfffffff0 },