From: Jongsung Kim Date: Tue, 9 Jul 2013 08:36:00 +0000 (+0900) Subject: net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01276ed2424eb78c95461545410923d5da154d31;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit Signed-off-by: Jongsung Kim Acked-by: Nicolas Ferre Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index f7e21f278e05..e866608d7d91 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -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; } }