OMAPDSS: Remove unused get_context_loss_count support
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 14 Feb 2014 07:44:56 +0000 (09:44 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 28 Feb 2014 10:35:43 +0000 (12:35 +0200)
The omapdss driver no longer uses get_context_loss_count call, so we can
remove it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
arch/arm/mach-omap2/display.c
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/dss.h
include/video/omapdss.h

index 4cf165502b35cfdd06c09696a20b09758d974169..93ebb4007ea9a7dc9e2dee47b9b05bcf41d8c087 100644 (file)
@@ -301,7 +301,6 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
        board_data->version = ver;
        board_data->dsi_enable_pads = omap_dsi_enable_pads;
        board_data->dsi_disable_pads = omap_dsi_disable_pads;
-       board_data->get_context_loss_count = omap_pm_get_dev_context_loss_count;
        board_data->set_min_bus_tput = omap_dss_set_min_bus_tput;
 
        omap_display_device.dev.platform_data = board_data;
index 9a145da35ad3a20402dd10fb6202e27f61e44cac..96e400c51001aacb2ea7aa90cf28d3f28c3b9101 100644 (file)
@@ -154,22 +154,6 @@ static void dss_restore_context(void)
 #undef SR
 #undef RR
 
-int dss_get_ctx_loss_count(void)
-{
-       struct platform_device *core_pdev = dss_get_core_pdev();
-       struct omap_dss_board_info *board_data = core_pdev->dev.platform_data;
-       int cnt;
-
-       if (!board_data->get_context_loss_count)
-               return -ENOENT;
-
-       cnt = board_data->get_context_loss_count(&dss.pdev->dev);
-
-       WARN_ONCE(cnt < 0, "get_context_loss_count failed: %d\n", cnt);
-
-       return cnt;
-}
-
 void dss_sdi_init(int datapairs)
 {
        u32 l;
index 057f24c8a3325b1ebc0e8b97f1f9dcca32c900a6..570f7ed2bcbc6a693eb9749ea3ba6716fb3c7339 100644 (file)
@@ -225,8 +225,6 @@ void dss_dump_clocks(struct seq_file *s);
 void dss_debug_dump_clocks(struct seq_file *s);
 #endif
 
-int dss_get_ctx_loss_count(void);
-
 void dss_sdi_init(int datapairs);
 int dss_sdi_enable(void);
 void dss_sdi_disable(void);
index 3d7c51a6f9ff27de17f5f748afb00bc190e3d6cf..1eb9aa605eeedb1312a0d8262fd45f71c60ffd46 100644 (file)
@@ -323,7 +323,6 @@ enum omapdss_version {
 
 /* Board specific data */
 struct omap_dss_board_info {
-       int (*get_context_loss_count)(struct device *dev);
        int num_devices;
        struct omap_dss_device **devices;
        struct omap_dss_device *default_device;