summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/aquantia.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-10-14 18:30:48 +0800
committerDavid S. Miller <davem@davemloft.net>2015-10-14 19:01:16 -0700
commitfb0801dcc17845ef52a19f9f9fbbb88a1a93f9b6 (patch)
treebbe7dbb3efed2cfee5e54a4bc04aeaf1a57ebdfb /drivers/net/phy/aquantia.c
parent7f0abb1f0f2b110ec38ade73c241fcba30f9112a (diff)
downloadtalos-obmc-linux-fb0801dcc17845ef52a19f9f9fbbb88a1a93f9b6.tar.gz
talos-obmc-linux-fb0801dcc17845ef52a19f9f9fbbb88a1a93f9b6.zip
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/aquantia.c')
-rw-r--r--drivers/net/phy/aquantia.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index d6111affbcb6..f1936b7a7af6 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -171,20 +171,7 @@ static struct phy_driver aquantia_driver[] = {
},
};
-static int __init aquantia_init(void)
-{
- return phy_drivers_register(aquantia_driver,
- ARRAY_SIZE(aquantia_driver));
-}
-
-static void __exit aquantia_exit(void)
-{
- return phy_drivers_unregister(aquantia_driver,
- ARRAY_SIZE(aquantia_driver));
-}
-
-module_init(aquantia_init);
-module_exit(aquantia_exit);
+module_phy_driver(aquantia_driver);
static struct mdio_device_id __maybe_unused aquantia_tbl[] = {
{ PHY_ID_AQ1202, 0xfffffff0 },
OpenPOWER on IntegriCloud