Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68564
b: refs/heads/master
c: 6e24939
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 13, 2007
1 parent 8132edf commit 278f382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 249aa4ff1778b318346d8ba4a7fa62c169a29410
refs/heads/master: 6e249395eace037ef139a1c8996b31e3797e412a
6 changes: 3 additions & 3 deletions trunk/drivers/ide/pci/pdc202xx_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ static int pdcnew_tune_chipset(ide_drive_t *drive, const u8 speed)
{
ide_hwif_t *hwif = HWIF(drive);
u8 adj = (drive->dn & 1) ? 0x08 : 0x00;
int err;

/*
* Issue SETFEATURES_XFER to the drive first. PDC202xx hardware will
* automatically set the timing registers based on 100 MHz PLL output.
*/
err = ide_config_drive_speed(drive, speed);
if (ide_config_drive_speed(drive, speed))
return 1;

/*
* As we set up the PLL to output 133 MHz for UltraDMA/133 capable
Expand Down Expand Up @@ -212,7 +212,7 @@ static int pdcnew_tune_chipset(ide_drive_t *drive, const u8 speed)
set_indexed_reg(hwif, 0x10 + adj, tmp & 0x7f);
}

return err;
return 0;
}

static void pdcnew_set_pio_mode(ide_drive_t *drive, const u8 pio)
Expand Down

0 comments on commit 278f382

Please sign in to comment.