summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-26 01:17:01 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-26 01:17:01 -0800
commitbd51126957eeac96d056c670545ff798c89f63f5 (patch)
treec99dcca2d46c673f7a37473cb601d5765fe3c9aa
parent8f480c0e4e120911a673ed7385359bf76ae01963 (diff)
downloadop-kernel-dev-bd51126957eeac96d056c670545ff798c89f63f5.zip
op-kernel-dev-bd51126957eeac96d056c670545ff798c89f63f5.tar.gz
sungem: Fix PCS_MIICTRL register write in gem_init_phy().
Use writel not writeb. Noticed by Hermann Lauer. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/sungem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 4291458..1349e41 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) {
OpenPOWER on IntegriCloud