Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131769
b: refs/heads/master
c: f76bee1
h: refs/heads/master
i:
  131767: 3b1aaba
v: v3
  • Loading branch information
Roel Kluin authored and Bartlomiej Zolnierkiewicz committed Feb 25, 2009
1 parent 17a2689 commit 2993362
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 43a12216d3664a9fa6c8ceb398da6ef08fee7ff7
refs/heads/master: f76bee16fc83f58d6c1b088977330f26ed7ae248
4 changes: 2 additions & 2 deletions trunk/drivers/ide/atiixp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static void atiixp_set_pio_mode(ide_drive_t *drive, const u8 pio)
{
struct pci_dev *dev = to_pci_dev(drive->hwif->dev);
unsigned long flags;
int timing_shift = (drive->dn & 2) ? 16 : 0 + (drive->dn & 1) ? 0 : 8;
int timing_shift = (drive->dn ^ 1) * 8;
u32 pio_timing_data;
u16 pio_mode_data;

Expand Down Expand Up @@ -85,7 +85,7 @@ static void atiixp_set_dma_mode(ide_drive_t *drive, const u8 speed)
{
struct pci_dev *dev = to_pci_dev(drive->hwif->dev);
unsigned long flags;
int timing_shift = (drive->dn & 2) ? 16 : 0 + (drive->dn & 1) ? 0 : 8;
int timing_shift = (drive->dn ^ 1) * 8;
u32 tmp32;
u16 tmp16;
u16 udma_ctl = 0;
Expand Down

0 comments on commit 2993362

Please sign in to comment.