Skip to content

Commit f707219

Browse files
richardweinbergerjic23
authored andcommitted
iio: imu: Fix inv_mpu6050 dependencies
Not all archs have io memory. Instead of selecting I2C_MUX (and bypassing the HAS_IOMEM dependency) depend directly on it. Fixes the following kconfig warning: warning: (MEDIA_SUBDRV_AUTOSELECT && VIDEO_CX231XX && INV_MPU6050_I2C) selects I2C_MUX which has unmet direct dependencies (I2C && HAS_IOMEM) And this build error: ERROR: "devm_ioremap_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined! ERROR: "of_address_to_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined! Cc: Jonathan Cameron <jic23@kernel.org> Cc: Hartmut Knaack <knaack.h@gmx.de> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 8a665d2 commit f707219

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iio/imu/inv_mpu6050/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ config INV_MPU6050_IIO
99

1010
config INV_MPU6050_I2C
1111
tristate "Invensense MPU6050 devices (I2C)"
12-
depends on I2C
12+
depends on I2C_MUX
1313
select INV_MPU6050_IIO
14-
select I2C_MUX
1514
select REGMAP_I2C
1615
help
1716
This driver supports the Invensense MPU6050 devices.

0 commit comments

Comments
 (0)