0069-spi-qup-Fix-build-error-due-to-a-typo.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From df7444fdd808111f7df507b00d357b44d3259376 Mon Sep 17 00:00:00 2001
  2. From: Axel Lin <[email protected]>
  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. Fix below build error when CONFIG_PM_RUNTIME=y:
  6. C [M] drivers/spi/spi-qup.o
  7. drivers/spi/spi-qup.c: In function 'spi_qup_pm_suspend_runtime':
  8. drivers/spi/spi-qup.c:712:12: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
  9. drivers/spi/spi-qup.c:712:12: note: each undeclared identifier is reported only once for each function it appears in
  10. drivers/spi/spi-qup.c: In function 'spi_qup_pm_resume_runtime':
  11. drivers/spi/spi-qup.c:725:13: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function)
  12. make[2]: *** [drivers/spi/spi-qup.o] Error 1
  13. make[1]: *** [drivers/spi] Error 2
  14. make: *** [drivers] Error 2
  15. Signed-off-by: Axel Lin <[email protected]>
  16. Signed-off-by: Mark Brown <[email protected]>
  17. ---
  18. drivers/spi/spi-qup.c | 4 ++--
  19. 1 file changed, 2 insertions(+), 2 deletions(-)
  20. --- a/drivers/spi/spi-qup.c
  21. +++ b/drivers/spi/spi-qup.c
  22. @@ -709,7 +709,7 @@ static int spi_qup_pm_suspend_runtime(st
  23. /* Enable clocks auto gaiting */
  24. config = readl(controller->base + QUP_CONFIG);
  25. - config |= QUP_CLOCK_AUTO_GATE;
  26. + config |= QUP_CONFIG_CLOCK_AUTO_GATE;
  27. writel_relaxed(config, controller->base + QUP_CONFIG);
  28. return 0;
  29. }
  30. @@ -722,7 +722,7 @@ static int spi_qup_pm_resume_runtime(str
  31. /* Disable clocks auto gaiting */
  32. config = readl_relaxed(controller->base + QUP_CONFIG);
  33. - config &= ~QUP_CLOCK_AUTO_GATE;
  34. + config &= ~QUP_CONFIG_CLOCK_AUTO_GATE;
  35. writel_relaxed(config, controller->base + QUP_CONFIG);
  36. return 0;
  37. }