From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 18 May 2008 17:09:51 +0000 (+0200) Subject: pxa_pcmcia: Move compile condition to the Makefile X-Git-Tag: v1.3.4-rc1~90^2~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72d5d5f7b5c74a188df238ec6dd824d80c74857a;p=u-boot pxa_pcmcia: Move compile condition to the Makefile Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/drivers/pcmcia/Makefile b/drivers/pcmcia/Makefile index b09b901267..8eb4982dfb 100644 --- a/drivers/pcmcia/Makefile +++ b/drivers/pcmcia/Makefile @@ -27,7 +27,7 @@ LIB := $(obj)libpcmcia.a COBJS-$(CONFIG_I82365) += i82365.o COBJS-y += mpc8xx_pcmcia.o -COBJS-y += pxa_pcmcia.o +COBJS-$(CONFIG_PXA_PCMCIA) += pxa_pcmcia.o COBJS-y += rpx_pcmcia.o COBJS-y += ti_pci1410a.o COBJS-y += tqm8xx_pcmcia.o diff --git a/drivers/pcmcia/pxa_pcmcia.c b/drivers/pcmcia/pxa_pcmcia.c index 65427efdbd..11d8590d7b 100644 --- a/drivers/pcmcia/pxa_pcmcia.c +++ b/drivers/pcmcia/pxa_pcmcia.c @@ -1,8 +1,6 @@ #include #include -#ifdef CONFIG_PXA_PCMCIA - #include #include #include @@ -93,5 +91,3 @@ int pcmcia_off (void) return 0; } #endif - -#endif /* CONFIG_PXA_PCMCIA */