From patchwork Fri Jun 3 10:00:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 846282 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 p53An0j2017589 for ; Fri, 3 Jun 2011 10:49:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304Ab1FCKBt (ORCPT ); Fri, 3 Jun 2011 06:01:49 -0400 Received: from na3sys009aog107.obsmtp.com ([74.125.149.197]:52994 "EHLO na3sys009aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754257Ab1FCKBt (ORCPT ); Fri, 3 Jun 2011 06:01:49 -0400 Received: from mail-fx0-f47.google.com ([209.85.161.47]) (using TLSv1) by na3sys009aob107.postini.com ([74.125.148.12]) with SMTP ID DSNKTeixC1bT8uqJsqW9TS2pavsrzFpL+yWK@postini.com; Fri, 03 Jun 2011 03:01:48 PDT Received: by fxm19 with SMTP id 19so2092523fxm.34 for ; Fri, 03 Jun 2011 03:01:45 -0700 (PDT) Received: by 10.223.21.140 with SMTP id j12mr756643fab.47.1307095305438; Fri, 03 Jun 2011 03:01:45 -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.43 (version=SSLv3 cipher=OTHER); Fri, 03 Jun 2011 03:01:44 -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 21/27] OMAP: DSS2: Remove unused opt_clock_available Date: Fri, 3 Jun 2011 13:00:31 +0300 Message-Id: <1307095237-14805-22-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-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 (demeter2.kernel.org [140.211.167.43]); Fri, 03 Jun 2011 10:49:07 +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 {