Skip to content

Commit

Permalink
OMAP: DSS2: Remove unused code from display.c
Browse files Browse the repository at this point in the history
oh_core variable is no longer used, so it and its initialization can be
removed.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed Jul 25, 2011
1 parent e6d80f9 commit 6d9f29d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/arm/mach-omap2/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6d9f29d

Please sign in to comment.