From: David S. Miller Date: Wed, 26 Nov 2008 09:17:01 +0000 (-0800) Subject: sungem: Fix PCS_MIICTRL register write in gem_init_phy(). X-Git-Tag: v2.6.28-rc8~73^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bd51126957eeac96d056c670545ff798c89f63f5;p=linux-2.6-omap-h63xx.git sungem: Fix PCS_MIICTRL register write in gem_init_phy(). Use writel not writeb. Noticed by Hermann Lauer. Signed-off-by: David S. Miller --- diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 4291458955e..1349e419673 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c @@ -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) {