media: marvell-ccic: mmp: get rid of mmpcam_devices list
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 17 Aug 2020 22:08:48 +0000 (00:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:09:16 +0000 (08:09 +0200)
commit9a8a45f81d3433fa9feeff5983e71a06b0fdc506
tree947e0861afea7b11f954d777b8424e66e7b11274
parent953e41153a16620f675eda6e7022fd5b3eb58fce
media: marvell-ccic: mmp: get rid of mmpcam_devices list

The sole reason for this was so that it would be possible to get a
mmp_camera from a platform_device in suspend/resume/remove hooks, because
drvdata used to be used by the v4l core.

Since commit 95db3a60e065 ("[media] v4l: Add a media_device pointer to the
v4l2_device structure") it is no longer case and thus we can make things
a great deal simpler.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/marvell-ccic/mmp-driver.c