aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/display.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-23 08:50:47 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-07-25 03:08:15 -0400
commit700dee78dcf7665ca63122049793a96f05d4b3e3 (patch)
tree5d763fa44a9065fa59667967fb1d67e706577833 /arch/arm/mach-omap2/display.c
parentaac927c93bb353375c74779491e217427cc4d3a9 (diff)
OMAP: DSS2: Use omap_pm_get_dev_context_loss_count to get ctx loss count
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>
Diffstat (limited to 'arch/arm/mach-omap2/display.c')
-rw-r--r--arch/arm/mach-omap2/display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 084a51b1fb21..c7e19c4cb9d4 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -25,6 +25,7 @@
25#include <video/omapdss.h> 25#include <video/omapdss.h>
26#include <plat/omap_hwmod.h> 26#include <plat/omap_hwmod.h>
27#include <plat/omap_device.h> 27#include <plat/omap_device.h>
28#include <plat/omap-pm.h>
28 29
29static struct platform_device omap_display_device = { 30static struct platform_device omap_display_device = {
30 .name = "omapdss", 31 .name = "omapdss",
@@ -117,7 +118,8 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
117 } 118 }
118 119
119 pdata.board_data = board_data; 120 pdata.board_data = board_data;
120 pdata.board_data->get_context_loss_count = NULL; 121 pdata.board_data->get_context_loss_count =
122 omap_pm_get_dev_context_loss_count;
121 pdata.opt_clock_available = opt_clock_available; 123 pdata.opt_clock_available = opt_clock_available;
122 124
123 for (i = 0; i < oh_count; i++) { 125 for (i = 0; i < oh_count; i++) {