]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Fix MDIO_THUNDER dependencies
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 13 Jun 2017 00:18:51 +0000 (17:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 16:58:19 +0000 (12:58 -0400)
commit65384cf242097aa181035f58f300b2c3093a51ea
tree42d5d92f428b3e50447f88927ff15f3363b0159a
parent3f2136ac668ef8b3ce847a01ccc26ff933ea3441
net: phy: Fix MDIO_THUNDER dependencies

After commit 66627e97e10e ("net: phy: Allow splitting MDIO
bus/device support from PHYs") we could create a configuration where
MDIO_DEVICE=y and PHYLIB=m which leads to the following undefined
references:

 drivers/built-in.o: In function `thunder_mdiobus_pci_remove':
>> mdio-thunder.c:(.text+0x2a212f): undefined reference to
>> `mdiobus_unregister'
>> mdio-thunder.c:(.text+0x2a2138): undefined reference to
>> `mdiobus_free'
   drivers/built-in.o: In function `thunder_mdiobus_pci_probe':
   mdio-thunder.c:(.text+0x2a22e7): undefined reference to
`devm_mdiobus_alloc_size'
   mdio-thunder.c:(.text+0x2a236f): undefined reference to
`of_mdiobus_register'

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 66627e97e10e ("net: phy: Allow splitting MDIO bus/device support from PHYs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Kconfig