iso c90 fix for au1xxx-ide.c
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
Signed-off-by Daniel Mack <[email protected]>
drivers/ide/mips/au1xxx-ide.c +2 -1
@@ -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;
Ar Iau, 2006-08-31 am 18:14 +0200, ysgrifennodd Daniel Mack:
Quoted 5 lines
Hi,
this little patch makes gcc stop complaining about mixed declarations and code when compiling
drivers/ide/mips/au1xxx-ide.c.
Quoted 7 lines
It can also be found at
http://caiaq.org/linux-mips/patches/au1xxx-ide_iso_c90.patch
Daniel
Signed-off-by Daniel Mack <[email protected]>
Acked-by Alan Cox <[email protected]>