pdc202xx_old: ignore "FIFO empty" bit in test_irq() method

The driver takes into account not only the interrupt status bit but
also "FIFO empty" bit in its test_irq() method. This actually is a
superfluous check since for the DMA commands calling the
dma_test_irq() method further in the interrupt handler makes sure FIFO
is emptied.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Sergei Shtylyov and committed by David S. Miller f693be4d 63e7cf91

+2 -2
+2 -2
drivers/ide/pdc202xx_old.c
··· 93 93 * bit 7: error, bit 6: interrupting, 94 94 * bit 5: FIFO full, bit 4: FIFO empty 95 95 */ 96 - return ((sc1d & 0x50) == 0x50) ? 1 : 0; 96 + return (sc1d & 0x40) ? 1 : 0; 97 97 } else { 98 98 /* 99 99 * bit 3: error, bit 2: interrupting, 100 100 * bit 1: FIFO full, bit 0: FIFO empty 101 101 */ 102 - return ((sc1d & 0x05) == 0x05) ? 1 : 0; 102 + return (sc1d & 0x04) ? 1 : 0; 103 103 } 104 104 } 105 105