]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix circular dependency in of_mdio code
authorDaniel Mack <zonque@gmail.com>
Fri, 27 Jun 2014 23:23:35 +0000 (01:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jul 2014 07:24:14 +0000 (00:24 -0700)
commita9498624a50ddcde009cd7e3ee9ef7d623c9b646
treef661313d5ecf270e5fbbe43847b3e0a6411d18e0
parent1e1578755626be6a04d8cbde5afcf83e9083044e
net: fix circular dependency in of_mdio code

Commit 095ab1c068 (net: of_mdio: add of_mdiobus_link_phydev()) introduced a
circular dependency between libphy and of_mdio.

depmod: ERROR: <modroot>/kernel/drivers/net/phy/libphy.ko in
dependency cycle!
depmod: ERROR: <modroot>/kernel/drivers/of/of_mdio.ko in dependency cycle!

The problem is that of_mdio.c references &mdio_bus_type and libphy now
references of_mdiobus_link_phydev.

Fix this by not exporting of_mdiobus_link_phydev() from of_mdio.ko.
Make it a static function in mdio_bus.c instead.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Jeff Mahoney <jeffm@suse.com>
Fixes: 095ab1c068 (net: of_mdio: add of_mdiobus_link_phydev())
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/of/of_mdio.c
include/linux/of_mdio.h