diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-23 00:27:16 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-23 00:39:06 -0500 |
commit | f0ceb114aec78cc585b8e7cb3d536f8a3e386bf1 (patch) | |
tree | 63b77935c2f8a78ee42bfbe7cb8c4628d402cbe3 | |
parent | cb64ca54076243b1d88b0a8430504d0a4cf3a5fa (diff) |
spi: qup: Fix build error due to a typo
Fix below build error when CONFIG_PM_RUNTIME=y:
C [M] drivers/spi/spi-qup.o
drivers/spi/spi-qup.c: In function 'spi_qup_pm_suspend_runtime':
drivers/spi/spi-qup.c:712:12: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
drivers/spi/spi-qup.c:712:12: note: each undeclared identifier is reported only once for each function it appears in
drivers/spi/spi-qup.c: In function 'spi_qup_pm_resume_runtime':
drivers/spi/spi-qup.c:725:13: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
make[2]: *** [drivers/spi/spi-qup.o] Error 1
make[1]: *** [drivers/spi] Error 2
make: *** [drivers] Error 2
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-qup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index dec339d51fc8..886edb4f4cb0 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c | |||
@@ -709,7 +709,7 @@ static int spi_qup_pm_suspend_runtime(struct device *device) | |||
709 | 709 | ||
710 | /* Enable clocks auto gaiting */ | 710 | /* Enable clocks auto gaiting */ |
711 | config = readl(controller->base + QUP_CONFIG); | 711 | config = readl(controller->base + QUP_CONFIG); |
712 | config |= QUP_CLOCK_AUTO_GATE; | 712 | config |= QUP_CONFIG_CLOCK_AUTO_GATE; |
713 | writel_relaxed(config, controller->base + QUP_CONFIG); | 713 | writel_relaxed(config, controller->base + QUP_CONFIG); |
714 | return 0; | 714 | return 0; |
715 | } | 715 | } |
@@ -722,7 +722,7 @@ static int spi_qup_pm_resume_runtime(struct device *device) | |||
722 | 722 | ||
723 | /* Disable clocks auto gaiting */ | 723 | /* Disable clocks auto gaiting */ |
724 | config = readl_relaxed(controller->base + QUP_CONFIG); | 724 | config = readl_relaxed(controller->base + QUP_CONFIG); |
725 | config &= ~QUP_CLOCK_AUTO_GATE; | 725 | config &= ~QUP_CONFIG_CLOCK_AUTO_GATE; |
726 | writel_relaxed(config, controller->base + QUP_CONFIG); | 726 | writel_relaxed(config, controller->base + QUP_CONFIG); |
727 | return 0; | 727 | return 0; |
728 | } | 728 | } |