linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next: PATCH] net: mdiobus: fix fwnode_mdbiobus_register() fallback case
@ 2021-06-24  0:51 Marcin Wojtas
  2021-06-24 16:14 ` Andrew Lunn
  2021-06-24 18:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Marcin Wojtas @ 2021-06-24  0:51 UTC (permalink / raw)
  To: linux-kernel, netdev
  Cc: davem, kuba, linux, jon, tn, jaz, hkallweit1, andrew, Marcin Wojtas

The fallback case of fwnode_mdbiobus_register()
(relevant for !CONFIG_FWNODE_MDIO) was defined with wrong
argument name, causing a compilation error. Fix that.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
 include/linux/fwnode_mdio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/fwnode_mdio.h b/include/linux/fwnode_mdio.h
index 13d4ae8fee0a..f62817c23137 100644
--- a/include/linux/fwnode_mdio.h
+++ b/include/linux/fwnode_mdio.h
@@ -40,7 +40,7 @@ static inline int fwnode_mdiobus_register(struct mii_bus *bus,
 	 * This way, we don't have to keep compat bits around in drivers.
 	 */
 
-	return mdiobus_register(mdio);
+	return mdiobus_register(bus);
 }
 #endif
 
-- 
2.29.0


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

end of thread, other threads:[~2021-06-24 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24  0:51 [net-next: PATCH] net: mdiobus: fix fwnode_mdbiobus_register() fallback case Marcin Wojtas
2021-06-24 16:14 ` Andrew Lunn
2021-06-24 18:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).