Commit 18840d3f authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/omap: move dss_suspend/resume_all to core.c

core.c is the only caller of dss_disable_all_devices(). We can thus move
the function from display.c to core.c and make it static.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 92bf0f9e
...@@ -166,6 +166,19 @@ int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *)) ...@@ -166,6 +166,19 @@ int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *))
/* PLATFORM DEVICE */ /* PLATFORM DEVICE */
static void dss_disable_all_devices(void)
{
struct omap_dss_device *dssdev = NULL;
for_each_dss_dev(dssdev) {
if (!dssdev->driver)
continue;
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
dssdev->driver->disable(dssdev);
}
}
static int __init omap_dss_probe(struct platform_device *pdev) static int __init omap_dss_probe(struct platform_device *pdev)
{ {
struct omap_dss_board_info *pdata = pdev->dev.platform_data; struct omap_dss_board_info *pdata = pdev->dev.platform_data;
......
...@@ -78,19 +78,6 @@ void omapdss_default_get_timings(struct omap_dss_device *dssdev, ...@@ -78,19 +78,6 @@ void omapdss_default_get_timings(struct omap_dss_device *dssdev,
} }
EXPORT_SYMBOL(omapdss_default_get_timings); EXPORT_SYMBOL(omapdss_default_get_timings);
void dss_disable_all_devices(void)
{
struct omap_dss_device *dssdev = NULL;
for_each_dss_dev(dssdev) {
if (!dssdev->driver)
continue;
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
dssdev->driver->disable(dssdev);
}
}
static LIST_HEAD(panel_list); static LIST_HEAD(panel_list);
static DEFINE_MUTEX(panel_list_mutex); static DEFINE_MUTEX(panel_list_mutex);
static int disp_num_counter; static int disp_num_counter;
......
...@@ -206,8 +206,6 @@ int dss_set_min_bus_tput(struct device *dev, unsigned long tput); ...@@ -206,8 +206,6 @@ int dss_set_min_bus_tput(struct device *dev, unsigned long tput);
int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *)); int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *));
/* display */ /* display */
void dss_disable_all_devices(void);
int display_init_sysfs(struct platform_device *pdev); int display_init_sysfs(struct platform_device *pdev);
void display_uninit_sysfs(struct platform_device *pdev); void display_uninit_sysfs(struct platform_device *pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment