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

[media] tc358743: only queue subdev notifications if devnode is set

Hardware interrupts are enabled in the probe function, before the subdev
is registered to its v4l2_device. Until v4l2_device_register_subdev_node
is called, sd->devnode is NULL and v4l2_subdev_notify_event must not be
called.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Philipp Zabel and committed by
Mauro Carvalho Chehab
abeaca0f 22dbe35a

+2 -1
+2 -1
drivers/media/i2c/tc358743.c
··· 870 870 &timings, false); 871 871 } 872 872 873 - v4l2_subdev_notify_event(sd, &tc358743_ev_fmt); 873 + if (sd->devnode) 874 + v4l2_subdev_notify_event(sd, &tc358743_ev_fmt); 874 875 } 875 876 876 877 static void tc358743_init_interrupts(struct v4l2_subdev *sd)