]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: mdio: of_mdiobus_register(): fall back to mdiobus_register() for !CONFIG_OF
authorDaniel Mack <zonque@gmail.com>
Tue, 6 May 2014 16:52:16 +0000 (18:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2014 21:16:35 +0000 (17:16 -0400)
commit23a456f05353035d1a2b3f1b9a92707acdc036e0
tree24de32c9862c164c333184da26c0ca5439377657
parentaeefa1ecfc799b0ea2c4979617f14cecd5cccbfd
net: mdio: of_mdiobus_register(): fall back to mdiobus_register() for !CONFIG_OF

If CONFIG_OF is not set, make of_mdiobus_register() call
mdiobus_register() instead of returning -ENOSYS.

This way, we can just call of_mdiobus_register() from all DT-enabled
drivers to handle the compat cases.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/of_mdio.h