All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: couple mdio_module_driver changes
@ 2017-01-23  5:17 Florian Fainelli
  2017-01-23  5:17 ` [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Florian Fainelli @ 2017-01-23  5:17 UTC (permalink / raw)
  To: netdev; +Cc: davem, andrew, vivien.didelot, Florian Fainelli

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment
  2017-01-23  5:17 [PATCH net-next 0/2] net: couple mdio_module_driver changes Florian Fainelli
@ 2017-01-23  5:17 ` Florian Fainelli
  2017-01-23 15:00   ` Andrew Lunn
  2017-01-23  5:17 ` [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver Florian Fainelli
  2017-01-24 18:38 ` [PATCH net-next 0/2] net: couple mdio_module_driver changes David Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2017-01-23  5:17 UTC (permalink / raw)
  To: netdev; +Cc: davem, andrew, vivien.didelot, Florian Fainelli

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver
  2017-01-23  5:17 [PATCH net-next 0/2] net: couple mdio_module_driver changes Florian Fainelli
  2017-01-23  5:17 ` [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment Florian Fainelli
@ 2017-01-23  5:17 ` Florian Fainelli
  2017-01-23 15:00   ` Andrew Lunn
  2017-01-24 18:38 ` [PATCH net-next 0/2] net: couple mdio_module_driver changes David Miller
  2 siblings, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2017-01-23  5:17 UTC (permalink / raw)
  To: netdev; +Cc: davem, andrew, vivien.didelot, Florian Fainelli

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment
  2017-01-23  5:17 ` [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment Florian Fainelli
@ 2017-01-23 15:00   ` Andrew Lunn
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2017-01-23 15:00 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: netdev, davem, vivien.didelot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver
  2017-01-23  5:17 ` [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver Florian Fainelli
@ 2017-01-23 15:00   ` Andrew Lunn
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2017-01-23 15:00 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: netdev, davem, vivien.didelot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH net-next 0/2] net: couple mdio_module_driver changes
  2017-01-23  5:17 [PATCH net-next 0/2] net: couple mdio_module_driver changes Florian Fainelli
  2017-01-23  5:17 ` [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment Florian Fainelli
  2017-01-23  5:17 ` [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver Florian Fainelli
@ 2017-01-24 18:38 ` David Miller
  2 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2017-01-24 18:38 UTC (permalink / raw)
  To: f.fainelli; +Cc: netdev, andrew, vivien.didelot

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-24 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23  5:17 [PATCH net-next 0/2] net: couple mdio_module_driver changes Florian Fainelli
2017-01-23  5:17 ` [PATCH net-next 1/2] net: phy: Fix typo for MDIO module boilerplate comment Florian Fainelli
2017-01-23 15:00   ` Andrew Lunn
2017-01-23  5:17 ` [PATCH net-next 2/2] net: dsa: b53: Utilize mdio_module_driver Florian Fainelli
2017-01-23 15:00   ` Andrew Lunn
2017-01-24 18:38 ` [PATCH net-next 0/2] net: couple mdio_module_driver changes David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.