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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bd51126957eeac96d056c670545ff798c89f63f5;p=linux-beck.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 4291458955ef..1349e419673c 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) {