linux-mips
[Top] [All Lists]

[PATCH] iso c90 fix for au1xxx-ide.c

To: linux-mips@linux-mips.org
Subject: [PATCH] iso c90 fix for au1xxx-ide.c
From: Daniel Mack <daniel@caiaq.de>
Date: Thu, 31 Aug 2006 18:14:44 +0200
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
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 <daniel@caiaq.de>

diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c
index 71f27e9..d40c087 100644
--- a/drivers/ide/mips/au1xxx-ide.c
+++ b/drivers/ide/mips/au1xxx-ide.c
@@ -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;


<Prev in Thread] Current Thread [Next in Thread>