summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2018-10-29 07:06:32 +0100
committerJoe Hershberger <joe.hershberger@ni.com>2018-11-05 10:41:56 -0600
commit591ffd98b05ce06ff1412b0322d5b063b0953add (patch)
tree2afea7a567d267f9778b41add1704c1a863f7d15
parentf95de0bd104a88006c09cb74abf4db1b0f2188ca (diff)
downloadu-boot-591ffd98b05ce06ff1412b0322d5b063b0953add.tar.gz
u-boot-591ffd98b05ce06ff1412b0322d5b063b0953add.tar.xz
u-boot-591ffd98b05ce06ff1412b0322d5b063b0953add.zip
net: ftgmac100: use setbits_le32() in the reset method
Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--drivers/net/ftgmac100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index 67a7c73503..78cd9df629 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -331,7 +331,7 @@ static void ftgmac100_reset(struct ftgmac100_data *priv)
debug("%s()\n", __func__);
- writel(FTGMAC100_MACCR_SW_RST, &ftgmac100->maccr);
+ setbits_le32(&ftgmac100->maccr, FTGMAC100_MACCR_SW_RST);
while (readl(&ftgmac100->maccr) & FTGMAC100_MACCR_SW_RST)
;