From patchwork Fri May 16 13:33:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 4191681 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2CEFDBFF02 for ; Fri, 16 May 2014 13:37:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D33120251 for ; Fri, 16 May 2014 13:37:47 +0000 (UTC) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 530A52026F for ; Fri, 16 May 2014 13:37:46 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4GDbjoa017487 for ; Fri, 16 May 2014 08:37:45 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GDbjlp007303 for ; Fri, 16 May 2014 08:37:45 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Fri, 16 May 2014 08:37:45 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GDbjuR021539 for ; Fri, 16 May 2014 08:37:45 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id DEDA280628 for ; Fri, 16 May 2014 08:37:44 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id 5469980626 for ; Fri, 16 May 2014 08:36:28 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4GDaSAn011030 for ; Fri, 16 May 2014 08:36:28 -0500 Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4GDaRbj007850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 May 2014 08:36:28 -0500 Received: from [216.82.241.195:56985] by server-12.bemta-8.messagelabs.com id CA/18-31743-B5416735; Fri, 16 May 2014 13:36:27 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-10.tower-119.messagelabs.com!1400247386!23949589!1 X-Originating-IP: [209.85.220.47] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 13740 invoked from network); 16 May 2014 13:36:27 -0000 Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by server-10.tower-119.messagelabs.com with RC4-SHA encrypted SMTP; 16 May 2014 13:36:27 -0000 Received: by mail-pa0-f47.google.com with SMTP id lf10so2573622pab.34 for ; Fri, 16 May 2014 06:36:25 -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:in-reply-to:references; bh=7b+Sy2bR6nD1znh1/tZ0Gs5qUEfAgDk4fE4iuA3JqNo=; b=aLOR4JzKGwsN2+xoYoYt15OoXtGIJZCUWTFugx2rOottDuuF8NIkDI2bD/jCd+zFzE ySxcnfN2zRvUZWzF8qWL9WjAoP4Qdf5FKp7Uw+QvJ25cJ8WSdRLUa8wlXOzX+asn2qTK wyrv3dn0kpPkDMPkZ9jv9JJLWttAedW2WhP+E3Wae+eLB5V3470/01K2hXk/EXjaSHtU OokeNPojCoUZxH9XqHFushmc6vb6Sg6txSDRGWujh/SKclAuxtO0zX7K6la/NHjl1Rbr nmS4JBe60Cj2T0iL7v0ox6kjIjLN3IvRD8fgXhstIRsQ0Uri4mVYqvC2H+Z6dzCT35nf MbIQ== X-Received: by 10.68.197.99 with SMTP id it3mr20699077pbc.37.1400247385787; Fri, 16 May 2014 06:36:25 -0700 (PDT) Received: from localhost.localdomain ([27.107.45.22]) by mx.google.com with ESMTPSA id cj1sm34699547pac.40.2014.05.16.06.36.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 May 2014 06:36:22 -0700 (PDT) From: "Lad, Prabhakar" To: LMML , Hans Verkuil Subject: [PATCH v5 02/49] media: davinci: vpif_display: drop buf_init() callback Date: Fri, 16 May 2014 19:03:07 +0530 Message-ID: <1400247235-31434-4-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400247235-31434-1-git-send-email-prabhakar.csengg@gmail.com> References: <1400247235-31434-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , LKML X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lad, Prabhakar" this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index dbd4f0f..e2102ea 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c @@ -205,16 +205,6 @@ static void vpif_wait_finish(struct vb2_queue *vq) mutex_lock(&common->lock); } -static int vpif_buffer_init(struct vb2_buffer *vb) -{ - struct vpif_disp_buffer *buf = container_of(vb, - struct vpif_disp_buffer, vb); - - INIT_LIST_HEAD(&buf->list); - - return 0; -} - static u8 channel_first_int[VPIF_NUMOBJECTS][2] = { {1, 1} }; static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) @@ -351,7 +341,6 @@ static struct vb2_ops video_qops = { .queue_setup = vpif_buffer_queue_setup, .wait_prepare = vpif_wait_prepare, .wait_finish = vpif_wait_finish, - .buf_init = vpif_buffer_init, .buf_prepare = vpif_buffer_prepare, .start_streaming = vpif_start_streaming, .stop_streaming = vpif_stop_streaming,