From patchwork Thu Jun 9 13:56:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 865372 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 p59Dv5mL009936 for ; Thu, 9 Jun 2011 13:58:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758137Ab1FIN5z (ORCPT ); Thu, 9 Jun 2011 09:57:55 -0400 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]:34532 "EHLO na3sys009aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758125Ab1FIN5y (ORCPT ); Thu, 9 Jun 2011 09:57:54 -0400 Received: from mail-fx0-f49.google.com ([209.85.161.49]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKTfDRYbdyiyGrWLSXYk53hc4SG5pdd+X/@postini.com; Thu, 09 Jun 2011 06:57:53 PDT Received: by mail-fx0-f49.google.com with SMTP id 14so1246661fxm.8 for ; Thu, 09 Jun 2011 06:57:52 -0700 (PDT) Received: by 10.223.41.89 with SMTP id n25mr163254fae.7.1307627872887; Thu, 09 Jun 2011 06:57:52 -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.50 (version=SSLv3 cipher=OTHER); Thu, 09 Jun 2011 06:57:51 -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 22/28] OMAP: DSS2: Remove unused opt_clock_available Date: Thu, 9 Jun 2011 16:56:44 +0300 Message-Id: <1307627810-3768-23-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-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]); Thu, 09 Jun 2011 13:58:12 +0000 (UTC) opt_clock_available() is no longer needed, so remove it. Signed-off-by: Tomi Valkeinen --- arch/arm/mach-omap2/display.c | 12 ------------ include/video/omapdss.h | 2 -- 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index c7e19c4..af43620 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -46,17 +46,6 @@ static struct omap_device_pm_latency omap_dss_latency[] = { /* oh_core is used for getting opt-clocks */ static struct omap_hwmod *oh_core; -static bool opt_clock_available(const char *clk_role) -{ - int i; - - for (i = 0; i < oh_core->opt_clks_cnt; i++) { - if (!strcmp(oh_core->opt_clks[i].role, clk_role)) - return true; - } - return false; -} - struct omap_dss_hwmod_data { const char *oh_name; const char *dev_name; @@ -120,7 +109,6 @@ int __init omap_display_init(struct omap_dss_board_info *board_data) pdata.board_data = board_data; pdata.board_data->get_context_loss_count = omap_pm_get_dev_context_loss_count; - pdata.opt_clock_available = opt_clock_available; for (i = 0; i < oh_count; i++) { oh = omap_hwmod_lookup(curr_dss_hwmod[i].oh_name); diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 4f914a5..06914b1 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -264,8 +264,6 @@ static inline int omap_display_init(struct omap_dss_board_info *board_data) struct omap_display_platform_data { struct omap_dss_board_info *board_data; /* TODO: Additional members to be added when PM is considered */ - - bool (*opt_clock_available)(const char *clk_role); }; struct omap_video_timings {