Commit e71c5c38 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Paul Mackerras

[POWERPC] Fix warning in powermac feature.c

This fixes a warning due to unused return from pci_enable_device() in
powermac feature.c core99_ata100_enable() function.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 84532c91
...@@ -810,6 +810,7 @@ core99_ata100_enable(struct device_node *node, long value) ...@@ -810,6 +810,7 @@ core99_ata100_enable(struct device_node *node, long value)
unsigned long flags; unsigned long flags;
struct pci_dev *pdev = NULL; struct pci_dev *pdev = NULL;
u8 pbus, pid; u8 pbus, pid;
int rc;
if (uninorth_rev < 0x24) if (uninorth_rev < 0x24)
return -ENODEV; return -ENODEV;
...@@ -828,7 +829,9 @@ core99_ata100_enable(struct device_node *node, long value) ...@@ -828,7 +829,9 @@ core99_ata100_enable(struct device_node *node, long value)
pdev = pci_find_slot(pbus, pid); pdev = pci_find_slot(pbus, pid);
if (pdev == NULL) if (pdev == NULL)
return 0; return 0;
pci_enable_device(pdev); rc = pci_enable_device(pdev);
if (rc)
return rc;
pci_set_master(pdev); pci_set_master(pdev);
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment