diff options
| author | Arnd Bergmann <[email protected]> | 2021-07-21 15:13:20 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-24 15:13:11 +0000 |
| commit | 9f9decdb64c5cc05b66f7a6ede226dd90684570b (patch) | |
| tree | 24760069dbff6e14064419d878870bf98614fb73 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | iio: adis: set GPIO reset pin direction (diff) | |
| download | kernel-9f9decdb64c5cc05b66f7a6ede226dd90684570b.tar.gz kernel-9f9decdb64c5cc05b66f7a6ede226dd90684570b.zip | |
iio: accel: fxls8962af: fix i2c dependency
With CONFIG_SPI=y and CONFIG_I2C=m, building fxls8962af into vmlinux
causes a link error against the I2C module:
aarch64-linux-ld: drivers/iio/accel/fxls8962af-core.o: in function `fxls8962af_fifo_flush':
fxls8962af-core.c:(.text+0x3a0): undefined reference to `i2c_verify_client'
Work around it by adding a Kconfig dependency that forces the SPI driver
to be a loadable module whenever I2C is a module.
Fixes: af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
