summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-09-13 19:38:40 +0200
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:35:23 +0900
commit19ddfe9c320ab56e5893bca0e69ec8178bc3eac4 (patch)
treece733602e86027db26417e7766e3072d82b5dd4d /drivers
parentf65aff76c75a3a15c1ff0348dfe176e6a1f0d7a7 (diff)
downloadlinux-3.10-19ddfe9c320ab56e5893bca0e69ec8178bc3eac4.tar.gz
linux-3.10-19ddfe9c320ab56e5893bca0e69ec8178bc3eac4.tar.bz2
linux-3.10-19ddfe9c320ab56e5893bca0e69ec8178bc3eac4.zip
Revert "exynos4-is: Ungate uart clocks on system suspend"
This reverts commit 85f406b4269d2c5905c59b7ca59484c7b7e00842. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-is.c22
-rw-r--r--drivers/media/platform/exynos4-is/fimc-is.h3
2 files changed, 1 insertions, 24 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fimc-is.c
index 790e71f577b..93bcb3616f4 100644
--- a/drivers/media/platform/exynos4-is/fimc-is.c
+++ b/drivers/media/platform/exynos4-is/fimc-is.c
@@ -890,39 +890,17 @@ static int fimc_is_runtime_suspend(struct device *dev)
static int fimc_is_resume(struct device *dev)
{
/* TODO: */
- struct fimc_is *is = dev_get_drvdata(dev);
- int i;
-
- for (i = ISS_GATE_CLKS_SUSPEND; i < ISS_GATE_CLKS_MAX; i++)
- if (!IS_ERR(is->clocks[i]))
- clk_disable_unprepare(is->clocks[i]);
-
return 0;
}
static int fimc_is_suspend(struct device *dev)
{
struct fimc_is *is = dev_get_drvdata(dev);
- int i, ret;
/* TODO: */
if (test_bit(IS_ST_A5_PWR_ON, &is->state))
return -EBUSY;
- for (i = ISS_GATE_CLKS_SUSPEND; i < ISS_GATE_CLKS_MAX; i++) {
- if (IS_ERR(is->clocks[i]))
- continue;
-
- ret = clk_prepare_enable(is->clocks[i]);
- if (ret < 0) {
- dev_err(&is->pdev->dev, "clock %s enable failed\n",
- fimc_is_clocks[i]);
- for (--i; i >= ISS_GATE_CLKS_SUSPEND; i--)
- clk_disable_unprepare(is->clocks[i]);
- return ret;
- }
- }
-
return 0;
}
#endif /* CONFIG_PM_SLEEP */
diff --git a/drivers/media/platform/exynos4-is/fimc-is.h b/drivers/media/platform/exynos4-is/fimc-is.h
index ed40bf76677..e0be691af2d 100644
--- a/drivers/media/platform/exynos4-is/fimc-is.h
+++ b/drivers/media/platform/exynos4-is/fimc-is.h
@@ -77,8 +77,7 @@ enum {
ISS_CLK_DRC,
ISS_CLK_FD,
ISS_CLK_MCUISP,
- ISS_GATE_CLKS_SUSPEND,
- ISS_CLK_UART = ISS_GATE_CLKS_SUSPEND,
+ ISS_CLK_UART,
ISS_GATE_CLKS_MAX,
ISS_CLK_ISP_DIV0 = ISS_GATE_CLKS_MAX,
ISS_CLK_ISP_DIV1,