diff options
-rw-r--r-- | drivers/ata/pata_radisys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c index 4401b332eaab..4fd25e737d9a 100644 --- a/drivers/ata/pata_radisys.c +++ b/drivers/ata/pata_radisys.c | |||
@@ -139,9 +139,9 @@ static void radisys_set_dmamode (struct ata_port *ap, struct ata_device *adev) | |||
139 | pci_read_config_byte(dev, 0x4A, &udma_mode); | 139 | pci_read_config_byte(dev, 0x4A, &udma_mode); |
140 | 140 | ||
141 | if (adev->xfer_mode == XFER_UDMA_2) | 141 | if (adev->xfer_mode == XFER_UDMA_2) |
142 | udma_mode &= ~ (1 << adev->devno); | 142 | udma_mode &= ~(2 << (adev->devno * 4)); |
143 | else /* UDMA 4 */ | 143 | else /* UDMA 4 */ |
144 | udma_mode |= (1 << adev->devno); | 144 | udma_mode |= (2 << (adev->devno * 4)); |
145 | 145 | ||
146 | pci_write_config_byte(dev, 0x4A, udma_mode); | 146 | pci_write_config_byte(dev, 0x4A, udma_mode); |
147 | 147 | ||