From: Koen Vandeputte Date: Tue, 19 Mar 2019 08:19:08 +0000 (+0100) Subject: kernel: fix compile issue for tda1997x media device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e7a7749a3ca4ac734f9df7d93bfd6fbe981d2ab7;p=openwrt%2Fstaging%2Flynxis.git kernel: fix compile issue for tda1997x media device Building tda1997x fails now unless V4L2_FWNODE is selected: drivers/media/i2c/tda1997x.o: in function `tda1997x_parse_dt' undefined reference to `v4l2_fwnode_endpoint_parse' Signed-off-by: Koen Vandeputte --- diff --git a/target/linux/generic/pending-4.19/840-media-i2c-tda1997x-select-V4L2_FWNODE.patch b/target/linux/generic/pending-4.19/840-media-i2c-tda1997x-select-V4L2_FWNODE.patch new file mode 100644 index 0000000000..6bf82b471d --- /dev/null +++ b/target/linux/generic/pending-4.19/840-media-i2c-tda1997x-select-V4L2_FWNODE.patch @@ -0,0 +1,48 @@ +From 237e88dcbcb0098e1a8a0887fb7299fcf18650a5 Mon Sep 17 00:00:00 2001 +From: Koen Vandeputte +Date: Mon, 18 Mar 2019 17:39:26 +0100 +Subject: [PATCH] media: i2c: tda1997x: select V4L2_FWNODE + +Building tda1997x fails now unless V4L2_FWNODE is selected: + +drivers/media/i2c/tda1997x.o: in function `tda1997x_parse_dt' +undefined reference to `v4l2_fwnode_endpoint_parse' + +While at it, also sort the selections alphabetically + +Fixes: 9ac0038db9a7 ("media: i2c: Add TDA1997x HDMI receiver driver") +Signed-off-by: Koen Vandeputte +Cc: Akinobu Mita +Cc: Bingbu Cao +Cc: Hans Verkuil +Cc: Jacopo Mondi +Cc: Matt Ranostay +Cc: Mauro Carvalho Chehab +Cc: Robin Leblon +Cc: Rui Miguel Silva +Cc: Sakari Ailus +Cc: Tim Harvey +Cc: linux-kernel@vger.kernel.org +Cc: stable@vger.kernel.org # v4.17+ +--- + drivers/media/i2c/Kconfig | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig +index 4c936e129500..8b296ae7d68c 100644 +--- a/drivers/media/i2c/Kconfig ++++ b/drivers/media/i2c/Kconfig +@@ -60,8 +60,9 @@ config VIDEO_TDA1997X + tristate "NXP TDA1997x HDMI receiver" + depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API + depends on SND_SOC +- select SND_PCM + select HDMI ++ select SND_PCM ++ select V4L2_FWNODE + ---help--- + V4L2 subdevice driver for the NXP TDA1997x HDMI receivers. + +-- +2.17.1 +