Skip to content

Commit

Permalink
net: mdiobus: fix fwnode_mdbiobus_register() fallback case
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Marcin Wojtas authored and David S. Miller committed Jun 24, 2021
1 parent 6d123b8 commit c88c192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fwnode_mdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c88c192

Please sign in to comment.