浏览代码

i2c: cadence: fix Kconfig dependency

During development, the driver first really needed to depend on
COMMON_CLK only. Later, it was switched to writel_relaxed, but it was
forgotten to update the dependencies, so build errors occured:

config: make ARCH=i386 allyesconfig

All error/warnings:

   drivers/i2c/busses/i2c-cadence.c: In function 'cdns_i2c_clear_bus_hold':
>> drivers/i2c/busses/i2c-cadence.c:168:3: error: implicit declaration
>> of function 'writel_relaxed' [-Werror=implicit-function-declaration]

Use a very safe dependency for now.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 11 年之前
父节点
当前提交
1fbeab0b8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/busses/Kconfig

+ 1 - 1
drivers/i2c/busses/Kconfig

@@ -378,7 +378,7 @@ config I2C_BLACKFIN_TWI_CLK_KHZ
 
 
 config I2C_CADENCE
 config I2C_CADENCE
 	tristate "Cadence I2C Controller"
 	tristate "Cadence I2C Controller"
-	depends on COMMON_CLK
+	depends on ARCH_ZYNQ
 	help
 	help
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  e.g. used by Xilinx Zynq.
 	  e.g. used by Xilinx Zynq.