]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l: async: Don't set sd->dev NULL in v4l2_async_cleanup
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 3 Oct 2017 11:10:41 +0000 (07:10 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 16:11:16 +0000 (12:11 -0400)
commit99b7a995a4a02522292ea6313bd626a33fb0e037
treedd034161ac100b34c2e4c189c4ddeee592579a92
parentde8dd7b2afc3108a0dddd70f0fd897ab89e141ed
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 <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>
drivers/media/v4l2-core/v4l2-async.c