From patchwork Fri Jun 3 10:00:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 846322 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p53An0j6017589 for ; Fri, 3 Jun 2011 10:49:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702Ab1FCKBw (ORCPT ); Fri, 3 Jun 2011 06:01:52 -0400 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:50865 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320Ab1FCKBv (ORCPT ); Fri, 3 Jun 2011 06:01:51 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKTeixDvAC5ri9CqCJy4mddojXZHA7kFlt@postini.com; Fri, 03 Jun 2011 03:01:51 PDT Received: by mail-fx0-f45.google.com with SMTP id 2so1497963fxm.32 for ; Fri, 03 Jun 2011 03:01:50 -0700 (PDT) Received: by 10.223.155.140 with SMTP id s12mr1870146faw.148.1307095310279; Fri, 03 Jun 2011 03:01:50 -0700 (PDT) Received: from localhost.localdomain (a62-248-131-233.elisa-laajakaista.fi [62.248.131.233]) by mx.google.com with ESMTPS id b22sm445843fak.1.2011.06.03.03.01.48 (version=SSLv3 cipher=OTHER); Fri, 03 Jun 2011 03:01:49 -0700 (PDT) From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: b-cousson@ti.com, paul@pwsan.com, khilman@ti.com, Tomi Valkeinen Subject: [PATCH 23/27] OMAP: DSS2: Remove unused code from display.c Date: Fri, 3 Jun 2011 13:00:33 +0300 Message-Id: <1307095237-14805-24-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307095237-14805-1-git-send-email-tomi.valkeinen@ti.com> References: <1307095237-14805-1-git-send-email-tomi.valkeinen@ti.com> 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 (demeter2.kernel.org [140.211.167.43]); Fri, 03 Jun 2011 10:49:08 +0000 (UTC) oh_core variable is no longer used, so it and its initialization can be removed. Signed-off-by: Tomi Valkeinen --- arch/arm/mach-omap2/display.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index af43620..a5b7a23 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -43,9 +43,6 @@ static struct omap_device_pm_latency omap_dss_latency[] = { }, }; -/* oh_core is used for getting opt-clocks */ -static struct omap_hwmod *oh_core; - struct omap_dss_hwmod_data { const char *oh_name; const char *dev_name; @@ -99,13 +96,6 @@ int __init omap_display_init(struct omap_dss_board_info *board_data) oh_count = ARRAY_SIZE(omap4_dss_hwmod_data); } - /* opt_clks are always associated with dss hwmod */ - oh_core = omap_hwmod_lookup("dss_core"); - if (!oh_core) { - pr_err("Could not look up dss_core.\n"); - return -ENODEV; - } - pdata.board_data = board_data; pdata.board_data->get_context_loss_count = omap_pm_get_dev_context_loss_count;