Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68563
b: refs/heads/master
c: 249aa4f
h: refs/heads/master
i:
  68561: e424675
  68559: 529ab06
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 13, 2007
1 parent c24e8f3 commit 8132edf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 3b4024d4297279ef85631f3c19a6fa4312b4c401
refs/heads/master: 249aa4ff1778b318346d8ba4a7fa62c169a29410
8 changes: 6 additions & 2 deletions trunk/drivers/ide/pci/cs5535.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ static void cs5535_set_speed(ide_drive_t *drive, const u8 speed)
*/
static int cs5535_set_drive(ide_drive_t *drive, u8 speed)
{
ide_config_drive_speed(drive, speed);
if (ide_config_drive_speed(drive, speed))
return 1;

cs5535_set_speed(drive, speed);

return 0;
Expand All @@ -157,7 +159,9 @@ static int cs5535_set_drive(ide_drive_t *drive, u8 speed)

static void cs5535_set_pio_mode(ide_drive_t *drive, const u8 pio)
{
ide_config_drive_speed(drive, XFER_PIO_0 + pio);
if (ide_config_drive_speed(drive, XFER_PIO_0 + pio))
return;

cs5535_set_speed(drive, XFER_PIO_0 + pio);
}

Expand Down

0 comments on commit 8132edf

Please sign in to comment.