From patchwork Sun Apr 3 23:51:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Osciak X-Patchwork-Id: 6295 Return-path: Envelope-to: mchehab@pedra Delivery-date: Mon, 04 Apr 2011 08:32:29 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1Q6i1F-0001gJ-22 for mchehab@pedra; Mon, 04 Apr 2011 08:32:29 -0300 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Mon, 04 Apr 2011 08:32:29 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q6X53-0004qL-Gq; Sun, 03 Apr 2011 23:51:41 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752930Ab1DCXvg (ORCPT + 1 other); Sun, 3 Apr 2011 19:51:36 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:47064 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932Ab1DCXv2 (ORCPT ); Sun, 3 Apr 2011 19:51:28 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so5394248iyb.19 for ; Sun, 03 Apr 2011 16:51:28 -0700 (PDT) Received: by 10.231.33.202 with SMTP id i10mr6445214ibd.125.1301874686793; Sun, 03 Apr 2011 16:51:26 -0700 (PDT) Received: from localhost.localdomain (c-24-4-33-58.hsd1.ca.comcast.net [24.4.33.58]) by mx.google.com with ESMTPS id 19sm3318091ibx.52.2011.04.03.16.51.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Apr 2011 16:51:26 -0700 (PDT) From: Pawel Osciak To: linux-media@vger.kernel.org Cc: m.szyprowski@samsung.com, s.nawrocki@samsung.com, g.liakhovetski@gmx.de, Pawel Osciak Subject: [PATCH 3/5] [media] s5p-fimc: remove stop_streaming() callback return Date: Sun, 3 Apr 2011 16:51:08 -0700 Message-Id: <1301874670-14833-4-git-send-email-pawel@osciak.com> X-Mailer: git-send-email 1.7.4.2 In-Reply-To: <1301874670-14833-1-git-send-email-pawel@osciak.com> References: <1301874670-14833-1-git-send-email-pawel@osciak.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: The stop_streaming() callback does not return a value anymore. Signed-off-by: Pawel Osciak --- drivers/media/video/s5p-fimc/fimc-capture.c | 4 ++-- drivers/media/video/s5p-fimc/fimc-core.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 95f8b4e1..34e55a4 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c @@ -247,7 +247,7 @@ static int start_streaming(struct vb2_queue *q) return 0; } -static int stop_streaming(struct vb2_queue *q) +static void stop_streaming(struct vb2_queue *q) { struct fimc_ctx *ctx = q->drv_priv; struct fimc_dev *fimc = ctx->fimc_dev; @@ -255,7 +255,7 @@ static int stop_streaming(struct vb2_queue *q) if (!fimc_capture_active(fimc)) return -EINVAL; - return fimc_stop_capture(fimc); + fimc_stop_capture(fimc); } static unsigned int get_plane_size(struct fimc_frame *fr, unsigned int plane) diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c index 6c919b3..66571d7 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.c +++ b/drivers/media/video/s5p-fimc/fimc-core.c @@ -348,13 +348,11 @@ static void fimc_m2m_shutdown(struct fimc_ctx *ctx) fimc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR); } -static int stop_streaming(struct vb2_queue *q) +static void stop_streaming(struct vb2_queue *q) { struct fimc_ctx *ctx = q->drv_priv; fimc_m2m_shutdown(ctx); - - return 0; } static void fimc_capture_irq_handler(struct fimc_dev *fimc)