mtip32xx: fix clearing an incorrect register in mtip_init_port
authorAsai Thambi S P <asamymuthupa@micron.com>
Wed, 30 May 2012 01:40:45 +0000 (18:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 May 2012 06:36:55 +0000 (08:36 +0200)
Fix clearing an incorrect register in mtip_init_port

Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c

index 304000c3d433f1d98afe6c0f0feea8553dc7bd04..0809e259b223826ff0c08876ca207109a57579b4 100644 (file)
@@ -436,8 +436,7 @@ static void mtip_init_port(struct mtip_port *port)
                writel(0xFFFFFFFF, port->completed[i]);
 
        /* Clear any pending interrupts for this port */
-       writel(readl(port->dd->mmio + PORT_IRQ_STAT),
-                                       port->dd->mmio + PORT_IRQ_STAT);
+       writel(readl(port->mmio + PORT_IRQ_STAT), port->mmio + PORT_IRQ_STAT);
 
        /* Clear any pending interrupts on the HBA. */
        writel(readl(port->dd->mmio + HOST_IRQ_STAT),