]> git.baikalelectronics.ru Git - kernel.git/commit
phy: rockchip-inno-usb2: add COMMON_CLK dependency
authorFrank Wang <frank.wang@rock-chips.com>
Tue, 16 Aug 2016 06:13:42 +0000 (14:13 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:41 +0000 (16:48 +0530)
commit5d985c5b5ef04671e14034481e9fadfa2c9d8cc7
treee57d3253b74bdcd8fd39362ce1f0c662d42170d5
parentb8aecce33d3973f83dceb16958ae651727e0ebb6
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); \

  ... ...

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
drivers/phy/Kconfig