diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-04-17 01:34:04 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-06-01 13:07:05 -0400 |
commit | fbc2063d7b76d58e47a74b845148b3a9db052f16 (patch) | |
tree | 437f80493214b02a98708c825aad4aeae4e0c92d | |
parent | d0f73614f573e6d28dfa95d9d15ad4e8efa65cd5 (diff) |
drm/exynos: dsi: remove unnecessary pm interfaces
Exynos drm driver is a single driver so pm operation
for kms drivers should be done by connector->dpms
at top level driver.
If kms driver has its own pm interfaces, single driver model
would be broken so this patch removes unnecessary pm interfaces
from dsi driver.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dsi.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 03bc3dae002b..84661feda60f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c | |||
@@ -1412,36 +1412,6 @@ static void exynos_dsi_unbind(struct device *dev, struct device *master, | |||
1412 | drm_connector_cleanup(&dsi->connector); | 1412 | drm_connector_cleanup(&dsi->connector); |
1413 | } | 1413 | } |
1414 | 1414 | ||
1415 | #if CONFIG_PM_SLEEP | ||
1416 | static int exynos_dsi_resume(struct device *dev) | ||
1417 | { | ||
1418 | struct exynos_dsi *dsi = exynos_dsi_display.ctx; | ||
1419 | |||
1420 | if (dsi->state & DSIM_STATE_ENABLED) { | ||
1421 | dsi->state &= ~DSIM_STATE_ENABLED; | ||
1422 | exynos_dsi_enable(dsi); | ||
1423 | } | ||
1424 | |||
1425 | return 0; | ||
1426 | } | ||
1427 | |||
1428 | static int exynos_dsi_suspend(struct device *dev) | ||
1429 | { | ||
1430 | struct exynos_dsi *dsi = exynos_dsi_display.ctx; | ||
1431 | |||
1432 | if (dsi->state & DSIM_STATE_ENABLED) { | ||
1433 | exynos_dsi_disable(dsi); | ||
1434 | dsi->state |= DSIM_STATE_ENABLED; | ||
1435 | } | ||
1436 | |||
1437 | return 0; | ||
1438 | } | ||
1439 | #endif | ||
1440 | |||
1441 | static const struct dev_pm_ops exynos_dsi_pm_ops = { | ||
1442 | SET_SYSTEM_SLEEP_PM_OPS(exynos_dsi_suspend, exynos_dsi_resume) | ||
1443 | }; | ||
1444 | |||
1445 | static const struct component_ops exynos_dsi_component_ops = { | 1415 | static const struct component_ops exynos_dsi_component_ops = { |
1446 | .bind = exynos_dsi_bind, | 1416 | .bind = exynos_dsi_bind, |
1447 | .unbind = exynos_dsi_unbind, | 1417 | .unbind = exynos_dsi_unbind, |
@@ -1545,7 +1515,6 @@ struct platform_driver dsi_driver = { | |||
1545 | .driver = { | 1515 | .driver = { |
1546 | .name = "exynos-dsi", | 1516 | .name = "exynos-dsi", |
1547 | .owner = THIS_MODULE, | 1517 | .owner = THIS_MODULE, |
1548 | .pm = &exynos_dsi_pm_ops, | ||
1549 | .of_match_table = exynos_dsi_of_match, | 1518 | .of_match_table = exynos_dsi_of_match, |
1550 | }, | 1519 | }, |
1551 | }; | 1520 | }; |