Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abeaca0f authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 22dbe35a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -870,6 +870,7 @@ static void tc358743_format_change(struct v4l2_subdev *sd)
				&timings, false);
	}

	if (sd->devnode)
		v4l2_subdev_notify_event(sd, &tc358743_ev_fmt);
}