558f8604f286b59792c6daedc8ff17d7ce162a7b
[openwrt.git] / target / linux / ipq806x / patches / 0069-spi-qup-Fix-build-error-due-to-a-typo.patch
1 From df7444fdd808111f7df507b00d357b44d3259376 Mon Sep 17 00:00:00 2001
2 From: Axel Lin <axel.lin@ingics.com>
3 Date: Sun, 23 Feb 2014 13:27:16 +0800
4 Subject: [PATCH 069/182] spi: qup: Fix build error due to a typo
5
6 Fix below build error when CONFIG_PM_RUNTIME=y:
7
8 C [M]  drivers/spi/spi-qup.o
9 drivers/spi/spi-qup.c: In function 'spi_qup_pm_suspend_runtime':
10 drivers/spi/spi-qup.c:712:12: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
11 drivers/spi/spi-qup.c:712:12: note: each undeclared identifier is reported only once for each function it appears in
12 drivers/spi/spi-qup.c: In function 'spi_qup_pm_resume_runtime':
13 drivers/spi/spi-qup.c:725:13: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
14 make[2]: *** [drivers/spi/spi-qup.o] Error 1
15 make[1]: *** [drivers/spi] Error 2
16 make: *** [drivers] Error 2
17
18 Signed-off-by: Axel Lin <axel.lin@ingics.com>
19 Signed-off-by: Mark Brown <broonie@linaro.org>
20 ---
21  drivers/spi/spi-qup.c |    4 ++--
22  1 file changed, 2 insertions(+), 2 deletions(-)
23
24 diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
25 index dec339d..886edb4 100644
26 --- a/drivers/spi/spi-qup.c
27 +++ b/drivers/spi/spi-qup.c
28 @@ -709,7 +709,7 @@ static int spi_qup_pm_suspend_runtime(struct device *device)
29  
30         /* Enable clocks auto gaiting */
31         config = readl(controller->base + QUP_CONFIG);
32 -       config |= QUP_CLOCK_AUTO_GATE;
33 +       config |= QUP_CONFIG_CLOCK_AUTO_GATE;
34         writel_relaxed(config, controller->base + QUP_CONFIG);
35         return 0;
36  }
37 @@ -722,7 +722,7 @@ static int spi_qup_pm_resume_runtime(struct device *device)
38  
39         /* Disable clocks auto gaiting */
40         config = readl_relaxed(controller->base + QUP_CONFIG);
41 -       config &= ~QUP_CLOCK_AUTO_GATE;
42 +       config &= ~QUP_CONFIG_CLOCK_AUTO_GATE;
43         writel_relaxed(config, controller->base + QUP_CONFIG);
44         return 0;
45  }
46 -- 
47 1.7.10.4
48