Skip to content

Commit

Permalink
OMAP: DSS2: Use omap_pm_get_dev_context_loss_count to get ctx loss count
Browse files Browse the repository at this point in the history
Initialize get_context_loss_count in the DSS board data to
omap_pm_get_dev_context_loss_count, so that omapdss driver can use it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed Jul 25, 2011
1 parent aac927c commit 700dee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-omap2/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <video/omapdss.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include <plat/omap-pm.h>

static struct platform_device omap_display_device = {
.name = "omapdss",
Expand Down Expand Up @@ -117,7 +118,8 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
}

pdata.board_data = board_data;
pdata.board_data->get_context_loss_count = NULL;
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++) {
Expand Down

0 comments on commit 700dee7

Please sign in to comment.