Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510658

[PATCH next 1/2] media: mtk-mdp: fix video_device_release argument

From Vincent Stehlé <vincent.stehle@laposte.net>
Newsgroups linux.kernel
Subject [PATCH next 1/2] media: mtk-mdp: fix video_device_release argument
Date 2016-10-27 22:50 +0200
Message-ID <swZtg-6Gr-23@gated-at.bofh.it> (permalink)
References <sf7pg-6h3-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


video_device_release() takes a pointer to struct video_device as argument.
Fix two call sites where the address of the pointer is passed instead.

Fixes: c8eb2d7e8202fd9c ("[media] media: Add Mediatek MDP Driver")
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Minghsiu Tsai <minghsiu.tsai@mediatek.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c b/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c
index 9a747e7..4a9e3e9d 100644
--- a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c
+++ b/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c
@@ -1267,13 +1267,13 @@ int mtk_mdp_register_m2m_device(struct mtk_mdp_dev *mdp)
 err_vdev_register:
 	v4l2_m2m_release(mdp->m2m_dev);
 err_m2m_init:
-	video_device_release(&mdp->vdev);
+	video_device_release(mdp->vdev);
 
 	return ret;
 }
 
 void mtk_mdp_unregister_m2m_device(struct mtk_mdp_dev *mdp)
 {
-	video_device_release(&mdp->vdev);
+	video_device_release(mdp->vdev);
 	v4l2_m2m_release(mdp->m2m_dev);
 }
-- 
2.9.3

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH next 1/2] media: mtk-mdp: fix video_device_release argument Vincent Stehlé <vincent.stehle@laposte.net> - 2016-10-27 22:50 +0200
  Re: [PATCH next 1/2] media: mtk-mdp: fix video_device_release  argument Vincent Stehlé <vincent.stehle@laposte.net> - 2016-10-28 10:00 +0200
    Re: [PATCH next 1/2] media: mtk-mdp: fix video_device_release  argument Hans Verkuil <hverkuil@xs4all.nl> - 2016-11-03 13:50 +0100
      Re: [PATCH next 1/2] media: mtk-mdp: fix video_device_release  argument Minghsiu Tsai <minghsiu.tsai@mediatek.com> - 2016-11-07 13:50 +0100

csiph-web