* [PATCH 2/3] powerpc: Fix warning in powermac feature.c
@ 2007-03-07 10:27 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2007-03-07 10:27 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
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@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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-07 10:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 10:27 [PATCH 2/3] powerpc: Fix warning in powermac feature.c Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).