lkml.org 
[lkml]   [2020]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] phy: ti: Fix build error without CONFIG_OF_ADDRESS
Date
If CONFIG_OF_ADDRESS is not set and COMPILE_TEST=y.
Building phy-j721e-wiz will get the following error:

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

Correct the config for PHY_J721E_WIZ.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 42440de5438a0("phy: ti: j721e-wiz: Add support for WIZ
module present in TI J721E SoC")
Signed-off-by: Hongbo Yao <yaohongbo@huawei.com>
---
drivers/phy/ti/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/ti/Kconfig b/drivers/phy/ti/Kconfig
index 3a1d3887c99c..f904aebf24a9 100644
--- a/drivers/phy/ti/Kconfig
+++ b/drivers/phy/ti/Kconfig
@@ -35,7 +35,7 @@ config PHY_AM654_SERDES

config PHY_J721E_WIZ
tristate "TI J721E WIZ (SERDES Wrapper) support"
- depends on OF && ARCH_K3 || COMPILE_TEST
+ depends on OF && HAS_IOMEM && (ARCH_K3 || COMPILE_TEST)
depends on COMMON_CLK
select GENERIC_PHY
select MULTIPLEXER
--
2.20.1
\
 
 \ /
  Last update: 2020-01-08 03:16    [W:0.018 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site