From patchwork Fri Aug 5 15:02:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Jones X-Patchwork-Id: 1038812 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p75F2v5h013595 for ; Fri, 5 Aug 2011 15:02:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756753Ab1HEPCz (ORCPT ); Fri, 5 Aug 2011 11:02:55 -0400 Received: from mail2.matrix-vision.com ([85.214.244.251]:47955 "EHLO mail2.matrix-vision.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755243Ab1HEPCz (ORCPT ); Fri, 5 Aug 2011 11:02:55 -0400 Received: from mail2.matrix-vision.com (localhost [127.0.0.1]) by mail2.matrix-vision.com (Postfix) with ESMTP id 3890D405E2; Fri, 5 Aug 2011 17:02:54 +0200 (CEST) Received: from erinome (g2.matrix-vision.com [80.152.136.245]) by mail2.matrix-vision.com (Postfix) with ESMTPA id 0B1D83F624; Fri, 5 Aug 2011 17:02:54 +0200 (CEST) Received: from erinome (localhost [127.0.0.1]) by erinome (Postfix) with ESMTP id 5FBAF6F8A; Fri, 5 Aug 2011 17:02:53 +0200 (CEST) Received: by erinome (Postfix, from userid 108) id 50F9E6F9C; Fri, 5 Aug 2011 17:02:53 +0200 (CEST) Received: from ap437-joe.intern.matrix-vision.de (host65-46.intern.matrix-vision.de [192.168.65.46]) by erinome (Postfix) with ESMTPA id 345FA6F8A; Fri, 5 Aug 2011 17:02:53 +0200 (CEST) From: Michael Jones To: linux-omap@vger.kernel.org Cc: Tomi Valkeinen , Archit Taneja Subject: [PATCH] OMAP: DSS2: DSI: fix warning unused variable 'dsidev' Date: Fri, 5 Aug 2011 17:02:41 +0200 Message-Id: <1312556561-27179-1-git-send-email-michael.jones@matrix-vision.de> X-Mailer: git-send-email 1.7.6 MIME-Version: 1.0 X-MV-Disclaimer: true (erinome) X-AV-Checked: ClamAV using ClamSMTP (erinome) X-AV-Checked: ClamAV using ClamSMTP (mail2) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 05 Aug 2011 15:02:57 +0000 (UTC) CC drivers/video/omap2/dss/dsi.o drivers/video/omap2/dss/dsi.c: In function ‘omap_dsi_prepare_update’: drivers/video/omap2/dss/dsi.c:3936: warning: unused variable ‘dsidev’ Signed-off-by: Michael Jones --- drivers/video/omap2/dss/dsi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 345757c..3ae0fd8 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -3933,7 +3933,9 @@ int omap_dsi_prepare_update(struct omap_dss_device *dssdev, u16 *x, u16 *y, u16 *w, u16 *h, bool enlarge_update_area) { +#ifdef DEBUG struct platform_device *dsidev = dsi_get_dsidev_from_dssdev(dssdev); +#endif u16 dw, dh; dssdev->driver->get_resolution(dssdev, &dw, &dh);