Skip to contentSkip to conversation

iso c90 fix for au1xxx-ide.c

PATCH In review Daniel Mack 2 participants 2 messages Aug 31, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iso c90 fix for au1xxx-ide.c

Hi,

this little patch makes gcc stop complaining about mixed declarations and code when compiling drivers/ide/mips/au1xxx-ide.c.

It can also be found at

http://caiaq.org/linux-mips/patches/au1xxx-ide_iso_c90.patch

Daniel

drivers/ide/mips/au1xxx-ide.c +2 -1
index 71f27e9..d40c087 100644
@@ -653,6 +653,7 @@ static int au_ide_probe(struct device *d
 	_auide_hwif *ahwif = &auide_hwif;
 	ide_hwif_t *hwif;
 	struct resource *res;
+	hw_regs_t *hw;
 	int ret = 0;
 
 #if defined(CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA)
@@ -695,7 +696,7 @@ #endif
 	/* FIXME:  This might possibly break PCMCIA IDE devices */
 
 	hwif                            = &ide_hwifs[pdev->id];
-	hw_regs_t *hw 			= &hwif->hw;
+	hw                              = &hwif->hw;
 	hwif->irq = hw->irq             = ahwif->irq;
 	hwif->chipset                   = ide_au1xxx;