From: Sakari Ailus Date: Tue, 3 Oct 2017 11:10:41 +0000 (-0400) Subject: media: v4l: async: Don't set sd->dev NULL in v4l2_async_cleanup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=99b7a995a4a02522292ea6313bd626a33fb0e037;p=openwrt%2Fstaging%2Fblogic.git media: v4l: async: Don't set sd->dev NULL in v4l2_async_cleanup v4l2_async_cleanup() is called when the async sub-device is unbound from the media device. As the pointer is set by the driver registering the async sub-device, leave the pointer as set by the driver. Signed-off-by: Sakari Ailus Reviewed-by: Sebastian Reichel Acked-by: Hans Verkuil Acked-by: Niklas Söderlund Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 60a1a50b9537..21c748bf3a7b 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c @@ -134,7 +134,6 @@ static void v4l2_async_cleanup(struct v4l2_subdev *sd) /* Subdevice driver will reprobe and put the subdev back onto the list */ list_del_init(&sd->async_list); sd->asd = NULL; - sd->dev = NULL; } int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev,