summaryrefslogtreecommitdiff
path: root/drivers/net/phy/et1011c.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-11-11 19:45:58 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-12 13:52:53 -0500
commit116dffa0b543a2e560abd62a0b3207b1694f9ab9 (patch)
treebf26c3d107938367692f724596da9067cea09aa0 /drivers/net/phy/et1011c.c
parentc31accd159a6477b91de61ae237dce38e3f3ee4d (diff)
net: phy: replace phy_driver_register calls
Replace module init/exit which only calls phy_driver_register with module_phy_driver macro. 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/et1011c.c')
-rw-r--r--drivers/net/phy/et1011c.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/net/phy/et1011c.c b/drivers/net/phy/et1011c.c
index a8eb19ec3183..a907743816a8 100644
--- a/drivers/net/phy/et1011c.c
+++ b/drivers/net/phy/et1011c.c
@@ -87,7 +87,7 @@ static int et1011c_read_status(struct phy_device *phydev)
return ret;
}
-static struct phy_driver et1011c_driver = {
+static struct phy_driver et1011c_driver[] = { {
.phy_id = 0x0282f014,
.name = "ET1011C",
.phy_id_mask = 0xfffffff0,
@@ -96,20 +96,9 @@ static struct phy_driver et1011c_driver = {
.config_aneg = et1011c_config_aneg,
.read_status = et1011c_read_status,
.driver = { .owner = THIS_MODULE,},
-};
-
-static int __init et1011c_init(void)
-{
- return phy_driver_register(&et1011c_driver);
-}
-
-static void __exit et1011c_exit(void)
-{
- phy_driver_unregister(&et1011c_driver);
-}
+} };
-module_init(et1011c_init);
-module_exit(et1011c_exit);
+module_phy_driver(et1011c_driver);
static struct mdio_device_id __maybe_unused et1011c_tbl[] = {
{ 0x0282f014, 0xfffffff0 },