From patchwork Thu Jun 9 13:56:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 865472 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 p59Dwtgo011291 for ; Thu, 9 Jun 2011 13:58:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758162Ab1FIN6v (ORCPT ); Thu, 9 Jun 2011 09:58:51 -0400 Received: from na3sys009aob106.obsmtp.com ([74.125.149.76]:40895 "EHLO na3sys009aog106.obsmtp.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758139Ab1FIN6A (ORCPT ); Thu, 9 Jun 2011 09:58:00 -0400 Received: from mail-fx0-f53.google.com ([209.85.161.53]) (using TLSv1) by na3sys009aob106.postini.com ([74.125.148.12]) with SMTP ID DSNKTfDRZ9ZiQfzEo2Grff82mSSW88tyFEoN@postini.com; Thu, 09 Jun 2011 06:57:59 PDT Received: by fxm8 with SMTP id 8so1088092fxm.26 for ; Thu, 09 Jun 2011 06:57:57 -0700 (PDT) Received: by 10.223.48.139 with SMTP id r11mr847357faf.63.1307627877851; Thu, 09 Jun 2011 06:57:57 -0700 (PDT) Received: from localhost.localdomain (a62-248-131-233.elisa-laajakaista.fi [62.248.131.233]) by mx.google.com with ESMTPS id q10sm669900fan.8.2011.06.09.06.57.55 (version=SSLv3 cipher=OTHER); Thu, 09 Jun 2011 06:57:56 -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: [PATCHv2 24/28] OMAP: DSS2: Remove unused code from display.c Date: Thu, 9 Jun 2011 16:56:46 +0300 Message-Id: <1307627810-3768-25-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307627810-3768-1-git-send-email-tomi.valkeinen@ti.com> References: <1307627810-3768-1-git-send-email-tomi.valkeinen@ti.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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]); Thu, 09 Jun 2011 13:58:56 +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;