sky2: ifdown kills irq mask

Bringing down a port also masks off the status and other IRQ's
needed for device to function due to missing paren's.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

+3 -2
+3 -2
drivers/net/sky2.c
··· 122 122 /* Avoid conditionals by using array */ 123 123 static const unsigned txqaddr[] = { Q_XA1, Q_XA2 }; 124 124 static const unsigned rxqaddr[] = { Q_R1, Q_R2 }; 125 + static const u32 portirq_msk[] = { Y2_IS_PORT_1, Y2_IS_PORT_2 }; 125 126 126 127 /* This driver supports yukon2 chipset only */ 127 128 static const char *yukon2_name[] = { ··· 1051 1050 1052 1051 /* Enable interrupts from phy/mac for port */ 1053 1052 imask = sky2_read32(hw, B0_IMSK); 1054 - imask |= (port == 0) ? Y2_IS_PORT_1 : Y2_IS_PORT_2; 1053 + imask |= portirq_msk[port]; 1055 1054 sky2_write32(hw, B0_IMSK, imask); 1056 1055 1057 1056 return 0; ··· 1402 1401 1403 1402 /* Disable port IRQ */ 1404 1403 imask = sky2_read32(hw, B0_IMSK); 1405 - imask &= ~(sky2->port == 0) ? Y2_IS_PORT_1 : Y2_IS_PORT_2; 1404 + imask &= ~portirq_msk[port]; 1406 1405 sky2_write32(hw, B0_IMSK, imask); 1407 1406 1408 1407 /* turn off LED's */