| From 7bec44f514a003810212fdf6e101ee50ee42a8db Mon Sep 17 00:00:00 2001 |
| From: Sakari Ailus <sakari.ailus@linux.intel.com> |
| Date: Tue, 3 Oct 2017 07:10:41 -0400 |
| Subject: [PATCH 0286/1795] media: v4l: async: Don't set sd->dev NULL in |
| v4l2_async_cleanup |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| 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 <sakari.ailus@linux.intel.com> |
| Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> |
| Acked-by: Hans Verkuil <hans.verkuil@cisco.com> |
| Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> |
| Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
| (cherry picked from commit 99b7a995a4a02522292ea6313bd626a33fb0e037) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/media/v4l2-core/v4l2-async.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c |
| index ca77728077db..590fbc9e63a9 100644 |
| --- a/drivers/media/v4l2-core/v4l2-async.c |
| +++ b/drivers/media/v4l2-core/v4l2-async.c |
| @@ -135,7 +135,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, |
| -- |
| 2.19.0 |
| |