Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: et8ek8: select V4L2_FWNODE

v4l2_async_register_subdev_sensor_common() is only provided when
CONFIG_V4L2_FWNODE is enabled, otherwise we get a link failure:

drivers/media/i2c/et8ek8/et8ek8_driver.o: In function `et8ek8_probe':
et8ek8_driver.c:(.text+0x884): undefined reference to `v4l2_async_register_subdev_sensor_common'

This adds a Kconfig 'select' statement like all the other users of
this interface have.

Fixes: d8932f38c10f ("media: et8ek8: Add support for flash and lens devices")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Arnd Bergmann and committed by
Mauro Carvalho Chehab
2aa4d498 fce8ba67

+1
+1
drivers/media/i2c/et8ek8/Kconfig
··· 1 1 config VIDEO_ET8EK8 2 2 tristate "ET8EK8 camera sensor support" 3 3 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 4 + select V4L2_FWNODE 4 5 ---help--- 5 6 This is a driver for the Toshiba ET8EK8 5 MP camera sensor. 6 7 It is used for example in Nokia N900 (RX-51).