Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034158AbcJ0Upa (ORCPT ); Thu, 27 Oct 2016 16:45:30 -0400 Received: from smtpoutz26.laposte.net ([194.117.213.101]:37459 "EHLO smtp.laposte.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S942385AbcJ0Up1 (ORCPT ); Thu, 27 Oct 2016 16:45:27 -0400 X-Greylist: delayed 1304 seconds by postgrey-1.27 at vger.kernel.org; Thu, 27 Oct 2016 16:45:27 EDT From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Vincent=20Stehl=C3=A9?= , Minghsiu Tsai , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH next 1/2] media: mtk-mdp: fix video_device_release argument Date: Thu, 27 Oct 2016 22:23:24 +0200 Message-Id: <20161027202325.20680-1-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <1473340146-6598-4-git-send-email-minghsiu.tsai@mediatek.com> References: <1473340146-6598-4-git-send-email-minghsiu.tsai@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-VR-SrcIP: 88.178.86.202 X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeelvddrjedugddugeejucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhht X-VR-Cause-3: shculddquddttddmnecujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhep X-VR-Cause-4: gghinhgtvghnthcuufhtvghhlhoruceovhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhn X-VR-Cause-5: vghtqeenucfkphepkeekrddujeekrdekiedrvddtvdenucfrrghrrghmpehmohguvgepshhmthhpohhu X-VR-Cause-6: thdphhgvlhhopehrohhmuhgrlhgurdgsvghrghgvrhhivgdpihhnvghtpeekkedrudejkedrkeeirddv X-VR-Cause-7: tddvpdhmrghilhhfrhhomhepvhhinhgtvghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhnvghtpdhr X-VR-Cause-8: tghpthhtoheplhhinhhugidqmhgvughirgesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1187 Lines: 34 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é Cc: Minghsiu Tsai Cc: Hans Verkuil Cc: Mauro Carvalho Chehab --- 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