aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_via.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c
index 0d97890af681..82e75a1f1b95 100644
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -229,7 +229,7 @@ static int via_pre_reset(struct ata_link *link, unsigned long deadline)
229 229
230 230
231/** 231/**
232 * via_do_set_mode - set initial PIO mode data 232 * via_do_set_mode - set transfer mode data
233 * @ap: ATA interface 233 * @ap: ATA interface
234 * @adev: ATA device 234 * @adev: ATA device
235 * @mode: ATA mode being programmed 235 * @mode: ATA mode being programmed
@@ -273,7 +273,7 @@ static void via_do_set_mode(struct ata_port *ap, struct ata_device *adev, int mo
273 273
274 pci_read_config_byte(pdev, 0x4C, &setup); 274 pci_read_config_byte(pdev, 0x4C, &setup);
275 setup &= ~(3 << shift); 275 setup &= ~(3 << shift);
276 setup |= clamp_val(t.setup, 1, 4) << shift; /* 1,4 or 1,4 - 1 FIXME */ 276 setup |= (clamp_val(t.setup, 1, 4) - 1) << shift;
277 pci_write_config_byte(pdev, 0x4C, setup); 277 pci_write_config_byte(pdev, 0x4C, setup);
278 } 278 }
279 279