提交 700dee78 编写于 作者: T Tomi Valkeinen

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: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 aac927c9
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <video/omapdss.h> #include <video/omapdss.h>
#include <plat/omap_hwmod.h> #include <plat/omap_hwmod.h>
#include <plat/omap_device.h> #include <plat/omap_device.h>
#include <plat/omap-pm.h>
static struct platform_device omap_display_device = { static struct platform_device omap_display_device = {
.name = "omapdss", .name = "omapdss",
...@@ -117,7 +118,8 @@ int __init omap_display_init(struct omap_dss_board_info *board_data) ...@@ -117,7 +118,8 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
} }
pdata.board_data = 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; pdata.opt_clock_available = opt_clock_available;
for (i = 0; i < oh_count; i++) { for (i = 0; i < oh_count; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册