Skip to content

Commit

Permalink
[POWERPC] Fix a compile warning in powermac/feature.c
Browse files Browse the repository at this point in the history
...by using the pci_get API instead of the deprecated old stuff.

Signed-off-by: Segher Boessenkool <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
segher authored and paulusmack committed Aug 3, 2007
1 parent 3a77d29 commit 5628244
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/powerpc/platforms/powermac/feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,13 +826,15 @@ core99_ata100_enable(struct device_node *node, long value)

if (value) {
if (pci_device_from_OF_node(node, &pbus, &pid) == 0)
pdev = pci_find_slot(pbus, pid);
pdev = pci_get_bus_and_slot(pbus, pid);
if (pdev == NULL)
return 0;
rc = pci_enable_device(pdev);
if (rc == 0)
pci_set_master(pdev);
pci_dev_put(pdev);
if (rc)
return rc;
pci_set_master(pdev);
}
return 0;
}
Expand Down

0 comments on commit 5628244

Please sign in to comment.