Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: ti: j721e-wiz: Fix build error without CONFIG_OF_ADDRESS

If CONFIG_OF_ADDRESS is not set and COMPILE_TEST=y, the following
error is seen while building phy-j721e-wiz.c

drivers/phy/ti/phy-j721e-wiz.o: In function `wiz_remove':
phy-j721e-wiz.c:(.text+0x1a): undefined reference to
`of_platform_device_destroy'

Fix the config dependency for PHY_J721E_WIZ here.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC")
Signed-off-by: Hongbo Yao <yaohongbo@huawei.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20200117212310.2864-1-kishon@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hongbo Yao and committed by
Greg Kroah-Hartman
42bbdd99 fdd64df7

+1
+1
drivers/phy/ti/Kconfig
··· 36 36 config PHY_J721E_WIZ 37 37 tristate "TI J721E WIZ (SERDES Wrapper) support" 38 38 depends on OF && ARCH_K3 || COMPILE_TEST 39 + depends on HAS_IOMEM && OF_ADDRESS 39 40 depends on COMMON_CLK 40 41 select GENERIC_PHY 41 42 select MULTIPLEXER