Skip to content

Commit 42bbdd9

Browse files
hober-yaogregkh
authored andcommitted
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 <[email protected]> Fixes: 091876c ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") Signed-off-by: Hongbo Yao <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fdd64df commit 42bbdd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/phy/ti/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ config PHY_AM654_SERDES
3636
config PHY_J721E_WIZ
3737
tristate "TI J721E WIZ (SERDES Wrapper) support"
3838
depends on OF && ARCH_K3 || COMPILE_TEST
39+
depends on HAS_IOMEM && OF_ADDRESS
3940
depends on COMMON_CLK
4041
select GENERIC_PHY
4142
select MULTIPLEXER

0 commit comments

Comments
 (0)