i2c: sprd: depend on COMMON_CLK to fix compile tests
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 17 Jan 2021 11:43:13 +0000 (12:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Jan 2021 09:13:33 +0000 (10:13 +0100)
commit9ecd1d2b302b600351fac50779f43fcb680c1a16
tree099834b16d612c5488655c0f155c2a8901545ade
parenta4166340a6e4d501c9e3aee81c20a269726ecde0
i2c: sprd: depend on COMMON_CLK to fix compile tests

The I2C_SPRD uses Common Clock Framework thus it cannot be built on
platforms without it (e.g. compile test on MIPS with LANTIQ):

    /usr/bin/mips-linux-gnu-ld: drivers/i2c/busses/i2c-sprd.o: in function `sprd_i2c_probe':
    i2c-sprd.c:(.text.sprd_i2c_probe+0x254): undefined reference to `clk_set_parent'

Fixes: 4a2d5f663dab ("i2c: Enable compile testing for more drivers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/Kconfig