aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-17 17:36:45 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-21 09:27:14 -0500
commit136b758bbb12348db08aca7d7dd96a12db4b23f0 (patch)
tree57185d3af20cd892bebee4dd9e69ea3a819bc4ec /drivers
parente2adbecfcb08ae68e05d9a076b5d398cee939664 (diff)
PCMCIA: add Kconfig control for building sa11xx_base.c
sa11xx_base.c is currently built when either PCMCIA_SA1100 or PCMCIA_SA1111 are selected. Let's move the logic into Kconfig. Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pcmcia/Kconfig5
-rw-r--r--drivers/pcmcia/Makefile5
2 files changed, 8 insertions, 2 deletions
diff --git a/drivers/pcmcia/Kconfig b/drivers/pcmcia/Kconfig
index f9e3fb3a285..b7f3d2933fa 100644
--- a/drivers/pcmcia/Kconfig
+++ b/drivers/pcmcia/Kconfig
@@ -183,10 +183,14 @@ config PCMCIA_BCM63XX
183config PCMCIA_SOC_COMMON 183config PCMCIA_SOC_COMMON
184 tristate 184 tristate
185 185
186config PCMCIA_SA11XX_BASE
187 tristate
188
186config PCMCIA_SA1100 189config PCMCIA_SA1100
187 tristate "SA1100 support" 190 tristate "SA1100 support"
188 depends on ARM && ARCH_SA1100 && PCMCIA 191 depends on ARM && ARCH_SA1100 && PCMCIA
189 select PCMCIA_SOC_COMMON 192 select PCMCIA_SOC_COMMON
193 select PCMCIA_SA11XX_BASE
190 help 194 help
191 Say Y here to include support for SA11x0-based PCMCIA or CF 195 Say Y here to include support for SA11x0-based PCMCIA or CF
192 sockets, found on HP iPAQs, Yopy, and other StrongARM(R)/ 196 sockets, found on HP iPAQs, Yopy, and other StrongARM(R)/
@@ -198,6 +202,7 @@ config PCMCIA_SA1111
198 tristate "SA1111 support" 202 tristate "SA1111 support"
199 depends on ARM && ARCH_SA1100 && SA1111 && PCMCIA 203 depends on ARM && ARCH_SA1100 && SA1111 && PCMCIA
200 select PCMCIA_SOC_COMMON 204 select PCMCIA_SOC_COMMON
205 select PCMCIA_SA11XX_BASE
201 help 206 help
202 Say Y here to include support for SA1111-based PCMCIA or CF 207 Say Y here to include support for SA1111-based PCMCIA or CF
203 sockets, found on the Jornada 720, Graphicsmaster and other 208 sockets, found on the Jornada 720, Graphicsmaster and other
diff --git a/drivers/pcmcia/Makefile b/drivers/pcmcia/Makefile
index ec543a4ff2e..05136dd9c98 100644
--- a/drivers/pcmcia/Makefile
+++ b/drivers/pcmcia/Makefile
@@ -25,8 +25,9 @@ obj-$(CONFIG_I82092) += i82092.o
25obj-$(CONFIG_TCIC) += tcic.o 25obj-$(CONFIG_TCIC) += tcic.o
26obj-$(CONFIG_PCMCIA_M8XX) += m8xx_pcmcia.o 26obj-$(CONFIG_PCMCIA_M8XX) += m8xx_pcmcia.o
27obj-$(CONFIG_PCMCIA_SOC_COMMON) += soc_common.o 27obj-$(CONFIG_PCMCIA_SOC_COMMON) += soc_common.o
28obj-$(CONFIG_PCMCIA_SA1100) += sa11xx_base.o sa1100_cs.o 28obj-$(CONFIG_PCMCIA_SA11XX_BASE) += sa11xx_base.o
29obj-$(CONFIG_PCMCIA_SA1111) += sa11xx_base.o sa1111_cs.o 29obj-$(CONFIG_PCMCIA_SA1100) += sa1100_cs.o
30obj-$(CONFIG_PCMCIA_SA1111) += sa1111_cs.o
30obj-$(CONFIG_M32R_PCC) += m32r_pcc.o 31obj-$(CONFIG_M32R_PCC) += m32r_pcc.o
31obj-$(CONFIG_M32R_CFC) += m32r_cfc.o 32obj-$(CONFIG_M32R_CFC) += m32r_cfc.o
32obj-$(CONFIG_PCMCIA_BCM63XX) += bcm63xx_pcmcia.o 33obj-$(CONFIG_PCMCIA_BCM63XX) += bcm63xx_pcmcia.o