Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76219
b: refs/heads/master
c: d26805f
h: refs/heads/master
i:
  76217: 8b303da
  76215: 168a911
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 25, 2008
1 parent c526532 commit e069777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 74095a91ed02f6727b62d4416be00a041f2d7436
refs/heads/master: d26805fd025abe1ab8785b23a7942cfb6ceffd75
9 changes: 2 additions & 7 deletions trunk/drivers/ide/ppc/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,8 @@ pmac_ide_init_hwif_ports(hw_regs_t *hw,
if (data_port == pmac_ide[ix].regbase)
break;

if (ix >= MAX_HWIFS) {
/* Probably a PCI interface... */
for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; ++i)
hw->io_ports[i] = data_port + i - IDE_DATA_OFFSET;
hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
return;
}
if (ix >= MAX_HWIFS)
return; /* not an IDE PMAC interface */

for (i = 0; i < 8; ++i)
hw->io_ports[i] = data_port + i * 0x10;
Expand Down

0 comments on commit e069777

Please sign in to comment.