Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107140
b: refs/heads/master
c: 9842727
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jul 30, 2008
1 parent 83296d1 commit e5a11d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: 9ee07f91a1fab61ff0d8d25be43351a049c0a821
refs/heads/master: 9842727da7d95d8249087148048cc571f967c023
13 changes: 9 additions & 4 deletions trunk/drivers/ide/ppc/pmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,11 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
/* Make sure we have sane timings */
sanitize_timings(pmif);

host = ide_host_alloc(&d, hws);
if (host == NULL)
return -ENOMEM;
hwif = host->ports[0];

#ifndef CONFIG_PPC64
/* XXX FIXME: Media bay stuff need re-organizing */
if (np->parent && np->parent->name
Expand Down Expand Up @@ -1119,11 +1124,11 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
pmif->mdev ? "macio" : "PCI", pmif->aapl_bus_id,
pmif->mediabay ? " (mediabay)" : "", hw->irq);

rc = ide_host_add(&d, hws, &host);
if (rc)
rc = ide_host_register(host, &d, hws);
if (rc) {
ide_host_free(host);
return rc;

hwif = host->ports[0];
}

return 0;
}
Expand Down

0 comments on commit e5a11d4

Please sign in to comment.