]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Misc fixes for upstream merge
authorTony Lindgren <tony@atomide.com>
Fri, 5 Dec 2008 20:18:15 +0000 (12:18 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 5 Dec 2008 20:18:15 +0000 (12:18 -0800)
- Fix warning spurious may be uninitialized
- Tabify pandora board file

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3pandora.c
arch/arm/mach-omap2/irq.c

index ec7ea03b6a89d98befcb222142481ff6633e38b1..39720eafb294556a5a45b2e4ac1b4187f7a83f52 100644 (file)
 #include "mmc-twl4030.h"
 
 
-#define NAND_BLOCK_SIZE SZ_128K
-#define GPMC_CS0_BASE  0x60
-#define GPMC_CS_SIZE   0x30
+#define NAND_BLOCK_SIZE                        SZ_128K
+#define GPMC_CS0_BASE                  0x60
+#define GPMC_CS_SIZE                   0x30
 
 #define OMAP3_PANDORA_TS_GPIO          94
 
 static struct mtd_partition omap3pandora_nand_partitions[] = {
        {
-               .name           = "xloader",
-               .offset         = 0,                    /* Offset = 0x00000 */
-               .size           = 4 * NAND_BLOCK_SIZE,
-               .mask_flags     = MTD_WRITEABLE
+               .name           = "xloader",
+               .offset         = 0,                    /* Offset = 0x00000 */
+               .size           = 4 * NAND_BLOCK_SIZE,
+               .mask_flags     = MTD_WRITEABLE
        }, {
-               .name           = "uboot",
-               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x80000 */
-               .size           = 14 * NAND_BLOCK_SIZE,
+               .name           = "uboot",
+               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x80000 */
+               .size           = 14 * NAND_BLOCK_SIZE,
        }, {
-               .name           = "uboot environment",
-               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x240000 */
-               .size           = 2 * NAND_BLOCK_SIZE,
+               .name           = "uboot environment",
+               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x240000 */
+               .size           = 2 * NAND_BLOCK_SIZE,
        }, {
-               .name           = "linux",
-               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x280000 */
-               .size           = 32 * NAND_BLOCK_SIZE,
+               .name           = "linux",
+               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x280000 */
+               .size           = 32 * NAND_BLOCK_SIZE,
        }, {
-               .name           = "rootfs",
-               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x680000 */
-               .size           = MTDPART_SIZ_FULL,
+               .name           = "rootfs",
+               .offset         = MTDPART_OFS_APPEND,   /* Offset = 0x680000 */
+               .size           = MTDPART_SIZ_FULL,
        },
 };
 
@@ -253,7 +253,7 @@ static struct ads7846_platform_data ads7846_config = {
 
 static struct omap2_mcspi_device_config ads7846_mcspi_config = {
        .turbo_mode     = 0,
-       .single_channel = 1,  /* 0: slave, 1: master */
+       .single_channel = 1,    /* 0: slave, 1: master */
 };
 
 static struct spi_board_info omap3pandora_spi_board_info[] __initdata = {
index 9c9e307360dbadb72b70047e4d5c3c014f4f11ed..110acb9bce435067aeef1569b128fcdd46c3368f 100644 (file)
@@ -96,7 +96,7 @@ static void omap_mask_irq(unsigned int irq)
        int offset = irq & (~(IRQ_BITS_PER_REG - 1));
 
        if (cpu_is_omap34xx()) {
-               int spurious;
+               int spurious = 0;
 
                /*
                 * INT_34XX_GPT12_IRQ is also the spurious irq. Maybe because