From: Frank Wang Date: Tue, 16 Aug 2016 06:13:42 +0000 (+0800) Subject: phy: rockchip-inno-usb2: add COMMON_CLK dependency X-Git-Tag: firefly_0821_release~970 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e5aa40fa5c5f9a9737fd6b9356b61b202ce6105;p=firefly-linux-kernel-4.4.55.git phy: rockchip-inno-usb2: add COMMON_CLK dependency On kernel builds without COMMON_CLK, the newly added rockchip-inno-usb2 driver fails to build: drivers/phy/phy-rockchip-inno-usb2.c:124:16: error: field 'clk480m_hw' has incomplete type struct clk_hw clk480m_hw; In file included from include/linux/clk.h:16:0 from drivers/phy/phy-rockchip-inno-usb2.c:17: include/linux/kernel.h:831:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ... ... Change-Id: I951d89ee34625dea5dfc6eeca841f9a5c44bc951 Signed-off-by: Frank Wang Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Guenter Roeck Reviewed-by: Heiko Stuebner Signed-off-by: William Wu --- diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index abb4322fe227..444cd39e7c76 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -323,6 +323,7 @@ config PHY_ROCKCHIP_USB config PHY_ROCKCHIP_INNO_USB2 tristate "Rockchip INNO USB2PHY Driver" depends on ARCH_ROCKCHIP && OF + depends on COMMON_CLK select GENERIC_PHY help Support for Rockchip USB2.0 PHY with Innosilicon IP block.