Commit 1fbeab0b8fd5e655ffef8a793b869eb7dffe0337

Authored by Wolfram Sang
1 parent df8eb5691c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/i2c/busses/Kconfig
... ... @@ -378,7 +378,7 @@
378 378  
379 379 config I2C_CADENCE
380 380 tristate "Cadence I2C Controller"
381   - depends on COMMON_CLK
  381 + depends on ARCH_ZYNQ
382 382 help
383 383 Say yes here to select Cadence I2C Host Controller. This controller is
384 384 e.g. used by Xilinx Zynq.