]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: staging/imx: Don't set driver data for v4l2_dev
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 10 May 2019 21:50:12 +0000 (17:50 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 18:16:21 +0000 (14:16 -0400)
commit87562287444d085ca644c9f724c05bc5ec8d45e5
treeadb2a3586a6631b71596fce1b6cb76a505a70e5b
parent3ef46bc97ca2c918b7657a08220c7340a9bb07a2
media: staging/imx: Don't set driver data for v4l2_dev

The media device is already available via multiple methods, there is no
need to set driver data for v4l2_dev to the media device.

In imx_media_link_notify(), get media device from link->graph_obj.mdev.

In imx_media_capture_device_register(), get media device from
v4l2_dev->mdev.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-capture.c
drivers/staging/media/imx/imx-media-dev-common.c