net: ftgmac100: use setbits_le32() in the reset method
authorCédric Le Goater <clg@kaod.org>
Mon, 29 Oct 2018 06:06:32 +0000 (07:06 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 5 Nov 2018 16:41:56 +0000 (10:41 -0600)
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>
drivers/net/ftgmac100.c

index 67a7c73503c59158b9dacda0b2619436128e6d59..78cd9df6298677f8d0cf0ae0007f283951b7fe4a 100644 (file)
@@ -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)
                ;