spi: qup: Fix build error due to a typo
Subsystems (2)
PATCH 1/2 spi: qup: Fix build error due to a typo
Fix below build error when CONFIG_PM_RUNTIME=y:
C [M] drivers/spi/spi-qup.odrivers/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
--- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-qup.c +2 -2
@@ -709,7 +709,7 @@ static int spi_qup_pm_suspend_runtime(struct device *device)/* Enable clocks auto gaiting */ config =readl (controller->base +QUP_CONFIG ); - config |=QUP_CLOCK_AUTO_GATE ; + config |=QUP_CONFIG_CLOCK_AUTO_GATE ;writel_relaxed (config, controller->base +QUP_CONFIG );return 0 ; }
@@ -722,7 +722,7 @@ static int spi_qup_pm_resume_runtime(struct device *device)/* Disable clocks auto gaiting */ config =readl_relaxed (controller->base +QUP_CONFIG ); - config &= ~QUP_CLOCK_AUTO_GATE ; + config &= ~QUP_CONFIG_CLOCK_AUTO_GATE ;writel_relaxed (config, controller->base +QUP_CONFIG );return 0 ; }
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 spi: qup: Enable driver compilation with COMPILE_TEST
This helps increasing build testing coverage.
--- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/Kconfig +1 -1
@@ -384,7 +384,7 @@ config SPI_RSPI config SPI_QUP tristate "Qualcomm SPI controller with QUP interface" - depends on ARCH_MSM_DT + depends on ARCH_MSM_DT || COMPILE_TEST help Qualcomm Universal Peripheral (QUP) core is an AHB slave that provides a common data path (an output FIFO and an input FIFO)
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 1 line · Axel Lin
Fix below build error when
CONFIG_PM_RUNTIME=y:
Applied both, thanks.