[PATCH 2/3] powerpc: Fix warning in powermac feature.c
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Mar 7 21:27:45 EST 2007
This fixes a warning due to unused return from pci_enable_device() in
powermac feature.c core99_ata100_enable() function.
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
arch/powerpc/platforms/powermac/feature.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: linux-tika/arch/powerpc/platforms/powermac/feature.c
===================================================================
--- linux-tika.orig/arch/powerpc/platforms/powermac/feature.c 2007-03-05 14:22:31.000000000 +0100
+++ linux-tika/arch/powerpc/platforms/powermac/feature.c 2007-03-05 14:22:54.000000000 +0100
@@ -810,6 +810,7 @@
unsigned long flags;
struct pci_dev *pdev = NULL;
u8 pbus, pid;
+ int rc;
if (uninorth_rev < 0x24)
return -ENODEV;
@@ -828,7 +829,9 @@
pdev = pci_find_slot(pbus, pid);
if (pdev == NULL)
return 0;
- pci_enable_device(pdev);
+ rc = pci_enable_device(pdev);
+ if (rc)
+ return rc;
pci_set_master(pdev);
}
return 0;
More information about the Linuxppc-dev
mailing list