aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-13 11:47:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-13 11:47:51 -0400
commit6e249395eace037ef139a1c8996b31e3797e412a (patch)
tree7b5df3653a47d49ff422124409760f3b33b74ccb /drivers
parent249aa4ff1778b318346d8ba4a7fa62c169a29410 (diff)
pdc202xx_new: check ide_config_drive_speed() return value
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/pci/pdc202xx_new.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 5fb1eedc8194..95600681bd3a 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -150,13 +150,13 @@ static int pdcnew_tune_chipset(ide_drive_t *drive, const u8 speed)
150{ 150{
151 ide_hwif_t *hwif = HWIF(drive); 151 ide_hwif_t *hwif = HWIF(drive);
152 u8 adj = (drive->dn & 1) ? 0x08 : 0x00; 152 u8 adj = (drive->dn & 1) ? 0x08 : 0x00;
153 int err;
154 153
155 /* 154 /*
156 * Issue SETFEATURES_XFER to the drive first. PDC202xx hardware will 155 * Issue SETFEATURES_XFER to the drive first. PDC202xx hardware will
157 * automatically set the timing registers based on 100 MHz PLL output. 156 * automatically set the timing registers based on 100 MHz PLL output.
158 */ 157 */
159 err = ide_config_drive_speed(drive, speed); 158 if (ide_config_drive_speed(drive, speed))
159 return 1;
160 160
161 /* 161 /*
162 * As we set up the PLL to output 133 MHz for UltraDMA/133 capable 162 * As we set up the PLL to output 133 MHz for UltraDMA/133 capable
@@ -212,7 +212,7 @@ static int pdcnew_tune_chipset(ide_drive_t *drive, const u8 speed)
212 set_indexed_reg(hwif, 0x10 + adj, tmp & 0x7f); 212 set_indexed_reg(hwif, 0x10 + adj, tmp & 0x7f);
213 } 213 }
214 214
215 return err; 215 return 0;
216} 216}
217 217
218static void pdcnew_set_pio_mode(ide_drive_t *drive, const u8 pio) 218static void pdcnew_set_pio_mode(ide_drive_t *drive, const u8 pio)