]> git.baikalelectronics.ru Git - kernel.git/commit
Input: raspberrypi-ts - add missing HAS_IOMEM dependency
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 31 May 2022 15:54:02 +0000 (08:54 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 31 May 2022 21:10:03 +0000 (14:10 -0700)
commit403f29b2861398ecd355c137c2e4685c3340f352
tree824d637933d1888c73103ea2246ef5b47f024453
parent7927372a3e2d78d43fb510c0d2ba125892e47241
Input: raspberrypi-ts - add missing HAS_IOMEM dependency

Since JOYSTICK_SENSEHAT selects MFD_SIMPLE_MFD_I2C and the latter
depends on HAS_IOMEM, and since 'select' does not follow any
dependency chains, JOYSTICK_SENSEHAT should also depend on HAS_IOMEM
to prevent a kconfig warning and a build error:

WARNING: unmet direct dependencies detected for MFD_SIMPLE_MFD_I2C
  Depends on [n]: HAS_IOMEM [=n] && I2C [=y]
  Selected by [y]:
  - JOYSTICK_SENSEHAT [=y] && INPUT_JOYSTICK [=y] && INPUT [=y] && I2C [=y]

s390-linux-ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0xc8): undefined reference to `devm_mfd_add_devices'

Fixes: b9fc024c5388 ("Input: add Raspberry Pi Sense HAT joystick driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20220531022942.16340-1-rdunlap@infradead.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/Kconfig