1
0
Fork 0
alistair23-linux/drivers/phy
Arnd Bergmann 245db3c349 phy: bcm-ns-usb3: fix MDIO_BUS dependency
The driver attempts to 'select MDIO_DEVICE', but the code
is actually a loadable module when PHYLIB=m:

drivers/phy/broadcom/phy-bcm-ns-usb3.o: In function `bcm_ns_usb3_mdiodev_phy_write':
phy-bcm-ns-usb3.c:(.text.bcm_ns_usb3_mdiodev_phy_write+0x28): undefined reference to `mdiobus_write'
drivers/phy/broadcom/phy-bcm-ns-usb3.o: In function `bcm_ns_usb3_module_exit':
phy-bcm-ns-usb3.c:(.exit.text+0x18): undefined reference to `mdio_driver_unregister'
drivers/phy/broadcom/phy-bcm-ns-usb3.o: In function `bcm_ns_usb3_module_init':
phy-bcm-ns-usb3.c:(.init.text+0x18): undefined reference to `mdio_driver_register'
phy-bcm-ns-usb3.c:(.init.text+0x38): undefined reference to `mdio_driver_unregister'

Using 'depends on MDIO_BUS' instead will avoid the link error.

Fixes: af850e14a7 ("phy: bcm-ns-usb3: add MDIO driver using proper bus layer")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-27 17:20:19 -07:00
..
allwinner phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
amlogic phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs 2017-06-06 14:50:14 +05:30
broadcom phy: bcm-ns-usb3: fix MDIO_BUS dependency 2017-07-27 17:20:19 -07:00
hisilicon phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
marvell phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
motorola phy: cpcap-usb: Fix missing return statement 2017-06-16 11:40:21 +05:30
qualcomm phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
renesas phy: rcar-gen3-usb3: add support for R-Car Gen3 USB 3.0 PHY 2017-06-07 17:55:13 +05:30
rockchip phy: rockchip-inno-usb2: add support of usb2-phy for rk3228 SoCs 2017-06-06 14:50:25 +05:30
samsung phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
st phy: Group vendor specific phy drivers 2017-06-01 15:28:33 +05:30
tegra phy: fix returnvar.cocci warnings 2016-11-18 18:19:16 +05:30
ti phy: tusb1210: implement ->set_mode() 2017-06-09 17:39:39 +05:30
Kconfig phy: cpcap-usb: Add CPCAP PMIC USB support 2017-06-06 14:50:21 +05:30
Makefile phy: cpcap-usb: Add CPCAP PMIC USB support 2017-06-06 14:50:21 +05:30
phy-core.c phy: Add reset callback 2016-09-10 17:31:39 +05:30
phy-lpc18xx-usb-otg.c phy: lpc18xx-usb-otg: fix clock order in phy init 2015-08-10 20:11:58 +05:30
phy-mt65xx-usb3.c phy: phy-mt65xx-usb3: disable 100uA extraction from SS port to HS port 2017-04-10 16:43:40 +05:30
phy-pistachio-usb.c PHY: Add driver for Pistachio USB2.0 PHY 2015-06-21 21:53:38 +02:00
phy-xgene.c phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode" 2016-07-04 17:19:21 +05:30