media: max2175: Fix build error without CONFIG_REGMAP_I2C
authorYueHaibing <yuehaibing@huawei.com>
Tue, 3 Sep 2019 12:09:45 +0000 (09:09 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:25:55 +0000 (17:25 -0300)
commit36756fbff1e4a31d71d262ae6a04a20b38efa874
tree125b6134c892ce9cbf12c72cce33a9c0c51c66c4
parent7c617138b8254a6bb60bfb5b8fc53eb8b3d6c3ab
media: max2175: Fix build error without CONFIG_REGMAP_I2C

If CONFIG_REGMAP_I2C is not set, building fails:

drivers/media/i2c/max2175.o: In function `max2175_probe':
max2175.c:(.text+0x1404): undefined reference to `__devm_regmap_init_i2c'

Select REGMAP_I2C to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: b47b79d8a231 ("[media] media: i2c: max2175: Add MAX2175 support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/Kconfig