Skip to content

Commit afcc0f8

Browse files
stettbergerlinusw
authored andcommitted
gpio/msm_v1: CONFIG_GPIO_MSM_V1 is only available on three SoCs
The feature GPIO_MSM_V1 is only available on three SoCs. On all other MSM SoCs the INT_GPIO_GROUP{1,2} is undeclared, but Kconfig does allow such configurations. Therefore the produced configuration is valid, but does not compile. The problem is fixed by adding the missing Kconfig constraints. drivers/gpio/gpio-msm-v1.c: In function â��msm_init_gpioâ��: drivers/gpio/gpio-msm-v1.c:629:26: error: 'INT_GPIO_GROUP1' undeclared drivers/gpio/gpio-msm-v1.c:630:26: error: 'INT_GPIO_GROUP2' undeclared Signed-off-by: Christian Dietrich <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 2e2070c commit afcc0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ config GPIO_MPC8XXX
136136

137137
config GPIO_MSM_V1
138138
tristate "Qualcomm MSM GPIO v1"
139-
depends on GPIOLIB && ARCH_MSM
139+
depends on GPIOLIB && ARCH_MSM && (ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50)
140140
help
141141
Say yes here to support the GPIO interface on ARM v6 based
142142
Qualcomm MSM chips. Most of the pins on the MSM can be

0 commit comments

Comments
 (0)