net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit
authorJongsung Kim <neidhard.kim@lge.com>
Tue, 9 Jul 2013 08:36:00 +0000 (17:36 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2013 19:43:16 +0000 (12:43 -0700)
Signed-off-by: Jongsung Kim <neidhard.kim@lge.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c

index f7e21f278e0571fd76386be899e392a61965b0a1..e866608d7d91f36cbd9e46532e474d2b02bf0bac 100644 (file)
@@ -1292,7 +1292,7 @@ static void macb_configure_dma(struct macb *bp)
 static void macb_configure_caps(struct macb *bp)
 {
        if (macb_is_gem(bp)) {
-               if (GEM_BF(IRQCOR, gem_readl(bp, DCFG1)) == 0)
+               if (GEM_BFEXT(IRQCOR, gem_readl(bp, DCFG1)) == 0)
                        bp->caps |= MACB_CAPS_ISR_CLEAR_ON_WRITE;
        }
 }