phy: ti: j721e-wiz: Fix build error without CONFIG_OF_ADDRESS
authorHongbo Yao <yaohongbo@huawei.com>
Fri, 17 Jan 2020 21:23:10 +0000 (02:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 23:05:30 +0000 (00:05 +0100)
commit42bbdd99221bac206dde2b5e87098177fcd2a48e
tree2ddc89b43df968ab85b1b3de6f70067f0f48d16b
parentfdd64df7b9d1e20dbe28c9c205682b66ad821e6c
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>
drivers/phy/ti/Kconfig