diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-08-28 05:07:25 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-09-19 11:56:10 -0400 |
commit | 9b5bd1c42059212883ba5687afd9025a67f192a3 (patch) | |
tree | d7cd3ee3cbb355013b413ffab99516516403b208 | |
parent | eb8a3bf73ecd894597dad2ded9aca43b53db167d (diff) |
drm/exynos/ipp: remove fake pm callbacks
PM callbacks in ipp core do nothing, so the patch removes it.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_ipp.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c index c411399070d6..da917caacce0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c | |||
@@ -1808,63 +1808,12 @@ static int ipp_remove(struct platform_device *pdev) | |||
1808 | return 0; | 1808 | return 0; |
1809 | } | 1809 | } |
1810 | 1810 | ||
1811 | static int ipp_power_ctrl(struct ipp_context *ctx, bool enable) | ||
1812 | { | ||
1813 | DRM_DEBUG_KMS("enable[%d]\n", enable); | ||
1814 | |||
1815 | return 0; | ||
1816 | } | ||
1817 | |||
1818 | #ifdef CONFIG_PM_SLEEP | ||
1819 | static int ipp_suspend(struct device *dev) | ||
1820 | { | ||
1821 | struct ipp_context *ctx = get_ipp_context(dev); | ||
1822 | |||
1823 | if (pm_runtime_suspended(dev)) | ||
1824 | return 0; | ||
1825 | |||
1826 | return ipp_power_ctrl(ctx, false); | ||
1827 | } | ||
1828 | |||
1829 | static int ipp_resume(struct device *dev) | ||
1830 | { | ||
1831 | struct ipp_context *ctx = get_ipp_context(dev); | ||
1832 | |||
1833 | if (!pm_runtime_suspended(dev)) | ||
1834 | return ipp_power_ctrl(ctx, true); | ||
1835 | |||
1836 | return 0; | ||
1837 | } | ||
1838 | #endif | ||
1839 | |||
1840 | #ifdef CONFIG_PM_RUNTIME | ||
1841 | static int ipp_runtime_suspend(struct device *dev) | ||
1842 | { | ||
1843 | struct ipp_context *ctx = get_ipp_context(dev); | ||
1844 | |||
1845 | return ipp_power_ctrl(ctx, false); | ||
1846 | } | ||
1847 | |||
1848 | static int ipp_runtime_resume(struct device *dev) | ||
1849 | { | ||
1850 | struct ipp_context *ctx = get_ipp_context(dev); | ||
1851 | |||
1852 | return ipp_power_ctrl(ctx, true); | ||
1853 | } | ||
1854 | #endif | ||
1855 | |||
1856 | static const struct dev_pm_ops ipp_pm_ops = { | ||
1857 | SET_SYSTEM_SLEEP_PM_OPS(ipp_suspend, ipp_resume) | ||
1858 | SET_RUNTIME_PM_OPS(ipp_runtime_suspend, ipp_runtime_resume, NULL) | ||
1859 | }; | ||
1860 | |||
1861 | struct platform_driver ipp_driver = { | 1811 | struct platform_driver ipp_driver = { |
1862 | .probe = ipp_probe, | 1812 | .probe = ipp_probe, |
1863 | .remove = ipp_remove, | 1813 | .remove = ipp_remove, |
1864 | .driver = { | 1814 | .driver = { |
1865 | .name = "exynos-drm-ipp", | 1815 | .name = "exynos-drm-ipp", |
1866 | .owner = THIS_MODULE, | 1816 | .owner = THIS_MODULE, |
1867 | .pm = &ipp_pm_ops, | ||
1868 | }, | 1817 | }, |
1869 | }; | 1818 | }; |
1870 | 1819 | ||