From patchwork Sat Aug 25 03:09:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1372921 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id AC8313FC33 for ; Sat, 25 Aug 2012 03:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717Ab2HYDJX (ORCPT ); Fri, 24 Aug 2012 23:09:23 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:49790 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754378Ab2HYDJU (ORCPT ); Fri, 24 Aug 2012 23:09:20 -0400 Received: by mail-gh0-f174.google.com with SMTP id r11so586536ghr.19 for ; Fri, 24 Aug 2012 20:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=CFjQpNr+e9g5zDq8L/mvzZ52FEwmzkoN9mdS6DCSmko=; b=Hnv0/VYl1e9TV96qsf868djuC/7xzlBlSGAZbDts2uX5mCxHPO1rtf+IoKooRMIGDA 9GKCU47SAow1o2CG6GG4kYYkR0QgbecncnpjvXkuv93p3vP6IcE1O1kcPkZjcIS5yyvY XIPBvpPYgF4az8MqUWwzACTAf/yGyWGBQX6OkM/MLxVYPyhMYgDQPH2M+7C4+Mhcy5EJ PkSGUxsfA9ykY7jLKButDPH8UtiGk8a0AkD3XHm/hqUyCHvkF6+4auek0Op2GF4Gi6dn NM+0BBh07h2GPofhicl7S2Hw62+RuCad4loMUlIEPfjnf0bfAyooch8452ZFVfjjb9Wj 7brw== Received: by 10.236.72.103 with SMTP id s67mr6194202yhd.78.1345864160236; Fri, 24 Aug 2012 20:09:20 -0700 (PDT) Received: from localhost.cpe.express.com.ar ([200.81.126.15]) by mx.google.com with ESMTPS id o25sm22166065yhm.14.2012.08.24.20.09.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Aug 2012 20:09:19 -0700 (PDT) From: Ezequiel Garcia To: , Mauro Carvalho Chehab Cc: Ezequiel Garcia , Josh Wu , Javier Martin , Guennadi Liakhovetski , Magnus Damm Subject: [PATCH 6/9] soc-camera: Don't check vb2_queue_init() return value Date: Sat, 25 Aug 2012 00:09:03 -0300 Message-Id: <1345864146-2207-6-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> References: <1345864146-2207-1-git-send-email-elezegarcia@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Right now vb2_queue_init() returns always 0 and it will be changed to return void. Cc: Josh Wu Cc: Javier Martin Cc: Guennadi Liakhovetski Cc: Magnus Damm Signed-off-by: Ezequiel Garcia --- drivers/media/platform/soc_camera/atmel-isi.c | 3 ++- drivers/media/platform/soc_camera/mx2_camera.c | 3 ++- drivers/media/platform/soc_camera/mx3_camera.c | 3 ++- .../platform/soc_camera/sh_mobile_ceu_camera.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index 6274a91..0fe61d6 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c @@ -515,7 +515,8 @@ static int isi_camera_init_videobuf(struct vb2_queue *q, q->ops = &isi_video_qops; q->mem_ops = &vb2_dma_contig_memops; - return vb2_queue_init(q); + vb2_queue_init(q); + return 0; } static int isi_camera_set_fmt(struct soc_camera_device *icd, diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c index 256187f..0fc7714 100644 --- a/drivers/media/platform/soc_camera/mx2_camera.c +++ b/drivers/media/platform/soc_camera/mx2_camera.c @@ -981,7 +981,8 @@ static int mx2_camera_init_videobuf(struct vb2_queue *q, q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct mx2_buffer); - return vb2_queue_init(q); + vb2_queue_init(q); + return 0; } #define MX2_BUS_FLAGS (V4L2_MBUS_MASTER | \ diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 16975c6..7e9ea36 100644 --- a/drivers/media/platform/soc_camera/mx3_camera.c +++ b/drivers/media/platform/soc_camera/mx3_camera.c @@ -456,7 +456,8 @@ static int mx3_camera_init_videobuf(struct vb2_queue *q, q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct mx3_camera_buffer); - return vb2_queue_init(q); + vb2_queue_init(q); + return 0; } /* First part of ipu_csi_init_interface() */ diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c index 0baaf94..ff32659 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c @@ -2026,7 +2026,8 @@ static int sh_mobile_ceu_init_videobuf(struct vb2_queue *q, q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct sh_mobile_ceu_buffer); - return vb2_queue_init(q); + vb2_queue_init(q); + return 0; } static struct soc_camera_host_ops sh_mobile_ceu_host_ops = {