Skip to contentSkip to conversation

mtip32xx: fix clearing an incorrect register in mtip_init_port

PATCH In review Asai Thambi S P 1 participant 1 message May 30, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 mtip32xx: fix clearing an incorrect register in mtip_init_port

Fix clearing an incorrect register in mtip_init_port

---
 drivers/block/mtip32xx/mtip32xx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +1 -2
index 00f9fc9..f9cf905 100644
@@ -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),
Signature · 1 line
1.7.1