Skip to content

Commit c88c192

Browse files
wojtas-marcindavem330
authored andcommitted
net: mdiobus: fix fwnode_mdbiobus_register() fallback case
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6d123b8 commit c88c192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/fwnode_mdio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static inline int fwnode_mdiobus_register(struct mii_bus *bus,
4040
* This way, we don't have to keep compat bits around in drivers.
4141
*/
4242

43-
return mdiobus_register(mdio);
43+
return mdiobus_register(bus);
4444
}
4545
#endif
4646

0 commit comments

Comments
 (0)