[PATCH net-next 0/2] net: couple mdio_module_driver changes

STALE3513d

6 messages, 3 authors, 2017-01-24 · open the first message on its own page

[PATCH net-next 0/2] net: couple mdio_module_driver changes

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-01-23 05:17:41

Hi David,

Small patch series fixing a comment for mdio_module_driver and
finally utilizing it in b53_mdio.

Thanks!

Florian Fainelli (2):
  net: phy: Fix typo for MDIO module boilerplate comment
  net: dsa: b53: Utilize mdio_module_driver

 drivers/net/dsa/b53/b53_mdio.c | 13 +------------
 include/linux/mdio.h           |  2 +-
 2 files changed, 2 insertions(+), 13 deletions(-)

-- 
2.9.3

[PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-01-23 05:17:43

The module boilerplate macro is named mdio_module_driver and not
module_mdio_driver, fix that.

Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 include/linux/mdio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mdio.h b/include/linux/mdio.h
index b6587a4b32e7..55a80d73cfc1 100644
--- a/include/linux/mdio.h
+++ b/include/linux/mdio.h
@@ -265,7 +265,7 @@ bool mdiobus_is_registered_device(struct mii_bus *bus, int addr);
 struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr);
 
 /**
- * module_mdio_driver() - Helper macro for registering mdio drivers
+ * mdio_module_driver() - Helper macro for registering mdio drivers
  *
  * Helper macro for MDIO drivers which do not do anything special in module
  * init/exit. Each module may only use this macro once, and calling it
-- 
2.9.3

[PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-01-23 05:17:50

Eliminate a bit of boilerplate code.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/dsa/b53/b53_mdio.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/net/dsa/b53/b53_mdio.c b/drivers/net/dsa/b53/b53_mdio.c
index 477a16b5660a..fa7556f5d4fb 100644
--- a/drivers/net/dsa/b53/b53_mdio.c
+++ b/drivers/net/dsa/b53/b53_mdio.c
@@ -375,18 +375,7 @@ static struct mdio_driver b53_mdio_driver = {
 		.of_match_table = b53_of_match,
 	},
 };
-
-static int __init b53_mdio_driver_register(void)
-{
-	return mdio_driver_register(&b53_mdio_driver);
-}
-module_init(b53_mdio_driver_register);
-
-static void __exit b53_mdio_driver_unregister(void)
-{
-	mdio_driver_unregister(&b53_mdio_driver);
-}
-module_exit(b53_mdio_driver_unregister);
+mdio_module_driver(b53_mdio_driver);
 
 MODULE_DESCRIPTION("B53 MDIO access driver");
 MODULE_LICENSE("Dual BSD/GPL");
-- 
2.9.3

Re: [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment

From: Andrew Lunn <andrew@lunn.ch>
Date: 2017-01-23 15:00:08

On Sun, Jan 22, 2017 at 09:17:32PM -0800, Florian Fainelli wrote:
The module boilerplate macro is named mdio_module_driver and not
module_mdio_driver, fix that.

Fixes: a9049e0c513c ("mdio: Add support for mdio drivers.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

Re: [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver

From: Andrew Lunn <andrew@lunn.ch>
Date: 2017-01-23 15:00:39

On Sun, Jan 22, 2017 at 09:17:33PM -0800, Florian Fainelli wrote:
Eliminate a bit of boilerplate code.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

Re: [PATCH net-next 0/2] net: couple mdio_module_driver changes

From: David Miller <davem@davemloft.net>
Date: 2017-01-24 18:38:08

From: Florian Fainelli <f.fainelli@gmail.com>
Date: Sun, 22 Jan 2017 21:17:31 -0800
Small patch series fixing a comment for mdio_module_driver and
finally utilizing it in b53_mdio.
Series applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help