]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] mx1ads: make mmc platform data available for modules
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 18 Jul 2008 06:33:26 +0000 (08:33 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 28 Jul 2008 09:28:53 +0000 (11:28 +0200)
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Acked-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mx1ads.c

index 9635d5812bcdffcaeae078e4288b6672570e4444..baeff24ff02da1abbd5d4be8a88c4751906fd547 100644 (file)
@@ -125,7 +125,7 @@ static struct platform_device *devices[] __initdata = {
        &imx_uart2_device,
 };
 
-#ifdef CONFIG_MMC_IMX
+#if defined(CONFIG_MMC_IMX) || defined(CONFIG_MMC_IMX_MODULE)
 static int mx1ads_mmc_card_present(struct device *dev)
 {
        /* MMC/SD Card Detect is PB 20 on MX1ADS V1.0.7 */
@@ -143,7 +143,7 @@ mx1ads_init(void)
 #ifdef CONFIG_LEDS
        imx_gpio_mode(GPIO_PORTA | GPIO_OUT | 2);
 #endif
-#ifdef CONFIG_MMC_IMX
+#if defined(CONFIG_MMC_IMX) || defined(CONFIG_MMC_IMX_MODULE)
        /* SD/MMC card detect */
        imx_gpio_mode(GPIO_PORTB | GPIO_GIUS | GPIO_IN | 20);
        imx_set_mmc_info(&mx1ads_mmc_info);