]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
HSMMC: Build fixes for earlier patches
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 6 Nov 2008 17:06:21 +0000 (09:06 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 6 Nov 2008 17:06:21 +0000 (09:06 -0800)
Build fixes for "HSMMC: Improve the interface for hsmmc_init()".
The header file needs to work without MMC support enabled, and
some board files needed to include it.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-ldp.c
arch/arm/mach-omap2/board-omap2evm.c
arch/arm/mach-omap2/board-omap3beagle.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/mmc-twl4030.h

index e3a3131e698109b46b60e3120e444fd0f151fa0f..237492fd23245284634da594e12145b20fdbadd7 100644 (file)
@@ -44,6 +44,9 @@
 
 #include <asm/io.h>
 
+#include "mmc-twl4030.h"
+
+
 #define        SDP2430_FLASH_CS        0
 #define        SDP2430_SMC91X_CS       5
 
index cf79de8d6cb4e17854fe5e01421da49034eaf65d..3ec8264ed19ef20997909e6733df94c86450bcaf 100644 (file)
@@ -41,6 +41,9 @@
 #include <asm/delay.h>
 #include <mach/control.h>
 
+#include "mmc-twl4030.h"
+
+
 #define CONFIG_DISABLE_HFCLK 1
 
 #define ENABLE_VAUX1_DEDICATED 0x03
index 4cb85df2977cd06ef7a0e94b070d7c6e50a0d4c5..1ad727e35ecd54f7af27e86689d102a95b23877e 100644 (file)
@@ -41,6 +41,9 @@
 #include <mach/mcspi.h>
 #include <mach/mux.h>
 
+#include "mmc-twl4030.h"
+
+
 #define GPMC_OFF_CONFIG1_0 0x60
 
 static struct mtd_partition omap2evm_nand_partitions[] = {
index 0f1c841a29b68669ad07023e1b5d5e67ca91b6d5..a4dc140ab3ecf4b3a30abe0d4308d0cc1658774c 100644 (file)
@@ -44,6 +44,8 @@
 #include <mach/mux.h>
 
 #include "twl4030-generic-scripts.h"
+#include "mmc-twl4030.h"
+
 
 #define GPMC_CS0_BASE  0x60
 #define GPMC_CS_SIZE   0x30
index eb21bc56517270a478cd459e5e6acb8bec5d9728..dd8077e009f3c778dab77e0930e2fd06152801a8 100644 (file)
@@ -40,6 +40,8 @@
 
 #include "sdram-micron-mt46h32m32lf-6.h"
 #include "twl4030-generic-scripts.h"
+#include "mmc-twl4030.h"
+
 
 static struct resource omap3evm_smc911x_resources[] = {
        [0] =   {
index 12f032786cbb32b08c0792d6f0239078b477f1bd..9fd3499f71a59d63d60f239ea85de8f771447cef 100644 (file)
@@ -47,6 +47,8 @@
 #include <mach/usb-musb.h>
 
 #include "sdram-micron-mt46h32m32lf-6.h"
+#include "mmc-twl4030.h"
+
 
 #define NAND_BLOCK_SIZE SZ_128K
 #define GPMC_CS0_BASE  0x60
index 5777d3369fb5d8ca1b1e6fa9c2101f53ee3f1f68..5d2f7801a31222a54c46fc1cece1cee4f40f778e 100644 (file)
@@ -6,20 +6,20 @@
  * published by the Free Software Foundation.
  */
 
-#if    defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
-       defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
-
 struct twl4030_hsmmc_info {
        u8      mmc;            /* controller 1/2/3 */
        u8      wires;          /* 1/4/8 wires */
        int     gpio_cd;        /* or -EINVAL */
 };
 
+#if    defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
+       defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
+
 void hsmmc_init(struct twl4030_hsmmc_info *);
 
 #else
 
-static inline void hsmmc_init(struct twl4030_hsmmc_info *)
+static inline void hsmmc_init(struct twl4030_hsmmc_info *info)
 {
 }