From patchwork Sun Oct 12 20:40:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5071751 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 8C5F1C11AC for ; Sun, 12 Oct 2014 20:42:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD91220179 for ; Sun, 12 Oct 2014 20:42:28 +0000 (UTC) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF45F20176 for ; Sun, 12 Oct 2014 20:42:27 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9CKgRn0015036 for ; Sun, 12 Oct 2014 15:42:27 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKgQeS013890 for ; Sun, 12 Oct 2014 15:42:26 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Sun, 12 Oct 2014 15:42:27 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKgQWS021970 for ; Sun, 12 Oct 2014 15:42:26 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id BCD7D80626 for ; Sun, 12 Oct 2014 15:42:26 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlelxv84.itg.ti.com (dlelxv84.itg.ti.com [172.17.0.246]) by linux.omap.com (Postfix) with ESMTP id CF25580627 for ; Sun, 12 Oct 2014 15:40:56 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dlelxv84.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9CKeuCI026887 for ; Sun, 12 Oct 2014 15:40:56 -0500 Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9CKeu3I013328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Oct 2014 15:40:56 -0500 Received: from [216.82.242.131:41286] by server-14.bemta-8.messagelabs.com id 71/D9-01453-857EA345; Sun, 12 Oct 2014 20:40:56 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-10.tower-76.messagelabs.com!1413146454!25795818!1 X-Originating-IP: [74.125.82.43] X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP X-StarScan-Received: X-StarScan-Version: 6.12.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10160 invoked from network); 12 Oct 2014 20:40:55 -0000 Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by server-10.tower-76.messagelabs.com with RC4-SHA encrypted SMTP; 12 Oct 2014 20:40:55 -0000 Received: by mail-wg0-f43.google.com with SMTP id m15so7219796wgh.2 for ; Sun, 12 Oct 2014 13:40:54 -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=qH7Kcxunqexj+UIa9cIeHi00CsDR36DD9L6Cs5OnX0o=; b=sBF8MA1AiaiXZHL9tz9TsUp6JalJuS5FKGS+JJ73SKwdmHtmrJYODW32bxDudpcPbb ovmGTp9YYT3YEdcDnSETos9O+rzQDsJoUTpM0ktfFzsaRV1yqDTSPgW1fpqUBvAlHZLi /+WhgkKZXoFj66jxGbyy4fmVwY1JOmkmrExl/9k1B1uPnDcO4JYtFyWjA7ULBiegPzeg MUH6aBHqvhb/hhJarbx0wZNb28SRiTCzB3FYZ6YgEuQPibM917827sJ60tMvzWrDrT8+ F+igWGBDWv/raHQ19C8s8MNOFF9pRfRki2MMOHFnXNjUYkG6JtRwGqqresQ4rT0aVXTs 9tVg== X-Received: by 10.180.149.244 with SMTP id ud20mr16222281wib.55.1413146454309; Sun, 12 Oct 2014 13:40:54 -0700 (PDT) Received: from tango-charlie.Home ([2.127.193.40]) by mx.google.com with ESMTPSA id y5sm9970930wix.10.2014.10.12.13.40.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Oct 2014 13:40:53 -0700 (PDT) From: "Lad, Prabhakar" To: LMML Subject: [PATCH 02/15] media: davinci: vpbe: drop buf_init() callback Date: Sun, 12 Oct 2014 21:40:32 +0100 Message-ID: <1413146445-7304-3-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413146445-7304-1-git-send-email-prabhakar.csengg@gmail.com> References: <1413146445-7304-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=unavailable 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 this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index ff9eac4..e2bda17 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c @@ -322,15 +322,6 @@ static void vpbe_wait_finish(struct vb2_queue *vq) mutex_lock(&layer->opslock); } -static int vpbe_buffer_init(struct vb2_buffer *vb) -{ - struct vpbe_disp_buffer *buf = container_of(vb, - struct vpbe_disp_buffer, vb); - - INIT_LIST_HEAD(&buf->list); - return 0; -} - static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) { struct vpbe_layer *layer = vb2_get_drv_priv(vq); @@ -405,7 +396,6 @@ static struct vb2_ops video_qops = { .queue_setup = vpbe_buffer_queue_setup, .wait_prepare = vpbe_wait_prepare, .wait_finish = vpbe_wait_finish, - .buf_init = vpbe_buffer_init, .buf_prepare = vpbe_buffer_prepare, .start_streaming = vpbe_start_streaming, .stop_streaming = vpbe_stop_streaming,