]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tc358743: only queue subdev notifications if devnode is set
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 20 Aug 2015 07:35:43 +0000 (04:35 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Sep 2015 16:48:06 +0000 (13:48 -0300)
commit333f002a7010ea06850f0d0a8a71473ecc96475f
tree74f8dfe4d4114b4d08860a47ca1604c5e1dc8ae3
parent7732ec5db95a5a194cfc4d3c73306d616a091591
[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>
drivers/media/i2c/tc358743.c