6239879b41
With CONFIG_NVMEM=m and CONFIG_PHY_QCOM_QUSB2=y we get a link error from calls to devm_nvmem_cell_get and nvmem_cell_read: drivers/built-in.o: In function `qusb2_phy_probe': binder.c:(.text+0x4750): undefined reference to `devm_nvmem_cell_get' drivers/built-in.o: In function `qusb2_phy_init': binder.c:(.text+0x489c): undefined reference to `nvmem_cell_read' Fix this by adding a Kconfig dependency to ensure we can only have this driver built in when the nvmem functions are also built in or we see the empty stub functions. We can still build this driver as a module when the nvmem core is build as module, too. Fixes: deffad633413 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> |
||
---|---|---|
.. | ||
tegra | ||
Kconfig | ||
Makefile | ||
phy-armada375-usb2.c | ||
phy-bcm-cygnus-pcie.c | ||
phy-bcm-kona-usb2.c | ||
phy-bcm-ns-usb2.c | ||
phy-bcm-ns-usb3.c | ||
phy-bcm-ns2-pcie.c | ||
phy-berlin-sata.c | ||
phy-berlin-usb.c | ||
phy-brcm-sata.c | ||
phy-core.c | ||
phy-da8xx-usb.c | ||
phy-dm816x-usb.c | ||
phy-exynos-dp-video.c | ||
phy-exynos-mipi-video.c | ||
phy-exynos-pcie.c | ||
phy-exynos4x12-usb2.c | ||
phy-exynos5-usbdrd.c | ||
phy-exynos4210-usb2.c | ||
phy-exynos5250-sata.c | ||
phy-exynos5250-usb2.c | ||
phy-hi6220-usb.c | ||
phy-hix5hd2-sata.c | ||
phy-lpc18xx-usb-otg.c | ||
phy-meson8b-usb2.c | ||
phy-miphy28lp.c | ||
phy-mt65xx-usb3.c | ||
phy-mvebu-sata.c | ||
phy-omap-control.c | ||
phy-omap-usb2.c | ||
phy-pistachio-usb.c | ||
phy-pxa-28nm-hsic.c | ||
phy-pxa-28nm-usb2.c | ||
phy-qcom-apq8064-sata.c | ||
phy-qcom-ipq806x-sata.c | ||
phy-qcom-qmp.c | ||
phy-qcom-qusb2.c | ||
phy-qcom-ufs-i.h | ||
phy-qcom-ufs-qmp-14nm.c | ||
phy-qcom-ufs-qmp-14nm.h | ||
phy-qcom-ufs-qmp-20nm.c | ||
phy-qcom-ufs-qmp-20nm.h | ||
phy-qcom-ufs.c | ||
phy-qcom-usb-hs.c | ||
phy-qcom-usb-hsic.c | ||
phy-rcar-gen2.c | ||
phy-rcar-gen3-usb2.c | ||
phy-rockchip-dp.c | ||
phy-rockchip-emmc.c | ||
phy-rockchip-inno-usb2.c | ||
phy-rockchip-pcie.c | ||
phy-rockchip-typec.c | ||
phy-rockchip-usb.c | ||
phy-s5pv210-usb2.c | ||
phy-samsung-usb2.c | ||
phy-samsung-usb2.h | ||
phy-spear1310-miphy.c | ||
phy-spear1340-miphy.c | ||
phy-stih407-usb.c | ||
phy-sun4i-usb.c | ||
phy-sun9i-usb.c | ||
phy-ti-pipe3.c | ||
phy-tusb1210.c | ||
phy-twl4030-usb.c | ||
phy-xgene.c | ||
ulpi_phy.h |