defxx: DEFEA's Burst Holdoff register initialization fix
authorMaciej W. Rozycki <macro@linux-mips.org>
Thu, 25 Sep 2014 10:06:45 +0000 (11:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 21:22:09 +0000 (17:22 -0400)
Use the mask rather than bit number macro to initialize the chip select
control bit for PDQ register space decoding in the Burst Holdoff register.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fddi/defxx.c

index 6068db8..15a18fb 100644 (file)
@@ -748,9 +748,9 @@ static void dfx_bus_init(struct net_device *dev)
                 */
                val = inb(base_addr + PI_DEFEA_K_BURST_HOLDOFF);
                if (dfx_use_mmio)
-                       val |= PI_BURST_HOLDOFF_V_MEM_MAP;
+                       val |= PI_BURST_HOLDOFF_M_MEM_MAP;
                else
-                       val &= ~PI_BURST_HOLDOFF_V_MEM_MAP;
+                       val &= ~PI_BURST_HOLDOFF_M_MEM_MAP;
                outb(val, base_addr + PI_DEFEA_K_BURST_HOLDOFF);
 
                /* Enable interrupts at EISA bus interface chip (ESIC) */