diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-05-27 03:52:38 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-07-25 03:22:05 -0400 |
commit | aea4eb9590c6fa36e1b68b9cf5c3e4ddea402812 (patch) | |
tree | fe5fdee1316ad2f4fde183ab12169be4af1554ad /arch/arm/mach-omap2 | |
parent | 4fbafaf371be780ed2cd73a520dfeafa1ea73e24 (diff) |
OMAP: DSS2: Remove unused opt_clock_available
opt_clock_available() is no longer needed, so remove it.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/display.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index c7e19c4cb9d4..af43620863c5 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[] = { | |||
46 | /* oh_core is used for getting opt-clocks */ | 46 | /* oh_core is used for getting opt-clocks */ |
47 | static struct omap_hwmod *oh_core; | 47 | static struct omap_hwmod *oh_core; |
48 | 48 | ||
49 | static bool opt_clock_available(const char *clk_role) | ||
50 | { | ||
51 | int i; | ||
52 | |||
53 | for (i = 0; i < oh_core->opt_clks_cnt; i++) { | ||
54 | if (!strcmp(oh_core->opt_clks[i].role, clk_role)) | ||
55 | return true; | ||
56 | } | ||
57 | return false; | ||
58 | } | ||
59 | |||
60 | struct omap_dss_hwmod_data { | 49 | struct omap_dss_hwmod_data { |
61 | const char *oh_name; | 50 | const char *oh_name; |
62 | const char *dev_name; | 51 | const char *dev_name; |
@@ -120,7 +109,6 @@ int __init omap_display_init(struct omap_dss_board_info *board_data) | |||
120 | pdata.board_data = board_data; | 109 | pdata.board_data = board_data; |
121 | pdata.board_data->get_context_loss_count = | 110 | pdata.board_data->get_context_loss_count = |
122 | omap_pm_get_dev_context_loss_count; | 111 | omap_pm_get_dev_context_loss_count; |
123 | pdata.opt_clock_available = opt_clock_available; | ||
124 | 112 | ||
125 | for (i = 0; i < oh_count; i++) { | 113 | for (i = 0; i < oh_count; i++) { |
126 | oh = omap_hwmod_lookup(curr_dss_hwmod[i].oh_name); | 114 | oh = omap_hwmod_lookup(curr_dss_hwmod[i].oh_name); |