sungem: Fix PCS_MIICTRL register write in gem_init_phy().
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 09:17:01 +0000 (01:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 09:17:01 +0000 (01:17 -0800)
Use writel not writeb.

Noticed by Hermann Lauer.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sungem.c

index 4291458..1349e41 100644 (file)
@@ -1714,7 +1714,7 @@ static void gem_init_phy(struct gem *gp)
                /* Reset PCS unit. */
                val = readl(gp->regs + PCS_MIICTRL);
                val |= PCS_MIICTRL_RST;
-               writeb(val, gp->regs + PCS_MIICTRL);
+               writel(val, gp->regs + PCS_MIICTRL);
 
                limit = 32;
                while (readl(gp->regs + PCS_MIICTRL) & PCS_MIICTRL_RST) {