diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-10-14 13:30:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-15 05:01:16 +0300 |
commit | fb0801dcc17845ef52a19f9f9fbbb88a1a93f9b6 (patch) | |
tree | bbe7dbb3efed2cfee5e54a4bc04aeaf1a57ebdfb /drivers/net/phy/teranetics.c | |
parent | 7f0abb1f0f2b110ec38ade73c241fcba30f9112a (diff) | |
download | linux-fb0801dcc17845ef52a19f9f9fbbb88a1a93f9b6.tar.xz |
net: phy: aquantia/teranetics: Convert to use module_phy_driver macro
Use module_phy_driver macro to simplify the code a bit.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/teranetics.c')
-rw-r--r-- | drivers/net/phy/teranetics.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c index 91e1bec6079f..07463fcca212 100644 --- a/drivers/net/phy/teranetics.c +++ b/drivers/net/phy/teranetics.c @@ -112,20 +112,7 @@ static struct phy_driver teranetics_driver[] = { }, }; -static int __init teranetics_init(void) -{ - return phy_drivers_register(teranetics_driver, - ARRAY_SIZE(teranetics_driver)); -} - -static void __exit teranetics_exit(void) -{ - return phy_drivers_unregister(teranetics_driver, - ARRAY_SIZE(teranetics_driver)); -} - -module_init(teranetics_init); -module_exit(teranetics_exit); +module_phy_driver(teranetics_driver); static struct mdio_device_id __maybe_unused teranetics_tbl[] = { { PHY_ID_TN2020, 0xffffffff }, |