From patchwork Thu Oct 27 20:23:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 9400367 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E81960231 for ; Thu, 27 Oct 2016 20:25:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A3752A3BC for ; Thu, 27 Oct 2016 20:25:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C7EC2A3BE; Thu, 27 Oct 2016 20:25:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0E79B2A3BC for ; Thu, 27 Oct 2016 20:25:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bzrE2-0008HJ-G5; Thu, 27 Oct 2016 20:24:34 +0000 Received: from smtpoutz28.laposte.net ([194.117.213.103] helo=smtp.laposte.net) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bzrDx-00082Y-Qv for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2016 20:24:32 +0000 Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout016 (Postfix) with ESMTP id BAB10113B31 for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1477599820; bh=XgWi1o96KTlRGDke0MkbFwl61eShuiduH1jfdL2ktOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bHv4zRVNvCdebIAnGdfCeJuQLvYCGeJHhhBdF2que52zxRvm0q6A3ICN4b71LPF0U +0HMMh+PLwlc7e/nSQS9IGYjFc1lcg6PwGfPvga8cCZTb7pCHygqiROkCwv0nTY4rk E+nqT9+VFm+itSEI36iObBEbWPmNGRjUO5p1tyW60wzPA8GmLbOW6o9eDe22sGYyzy BY04AyJnvYr9+zzZs7of7RYTe5AKkEqng3w67SxC6whC6mcc2zzeEVYLCNXjqtpSPN RLpbu9wbTcXeNbdi5nAYZ82leLohR3geSopSqXFf8khPRhWiEzvGXnGxfcSACslY5U RIZueWifeZBWg== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout016 (Postfix) with ESMTP id ADC67113D3C for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.prosodie [10.128.63.4]) by lpn-prd-vrout016 (Postfix) with ESMTP id ABA32113B31 for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id 99B3748E0E6 for ; Thu, 27 Oct 2016 22:23:40 +0200 (CEST) Received: from romuald.bergerie (rqp06-1-88-178-86-202.fbx.proxad.net [88.178.86.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lpn-prd-vrin003 (Postfix) with ESMTPSA id 33B3348E0D3; Thu, 27 Oct 2016 22:23:38 +0200 (CEST) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with ESMTPS id 6D79A17E4BB8; Thu, 27 Oct 2016 22:23:37 +0200 (CEST) Received: from vincent by radicelle.bergerie with local (Exim 4.87) (envelope-from ) id 1bzrD7-0003ru-Bb; Thu, 27 Oct 2016 22:23:37 +0200 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161027_132430_266187_32EAEB14 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Minghsiu Tsai , linux-kernel@vger.kernel.org, =?UTF-8?q?Vincent=20Stehl=C3=A9?= , Mauro Carvalho Chehab , Hans Verkuil , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }