summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci_32.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2007-08-01 17:41:13 +0200
committerPaul Mackerras <paulus@samba.org>2007-08-03 11:36:01 +0200
commit3a77d291be53fbc619f14a6199b9b4cac036c476 (patch)
treefbbdfaf0de61440bbf0707084537ddf5f62e3c4b /arch/powerpc/kernel/pci_32.c
parent[POWERPC] Fix parse_drconf_memory() for 64-bit start addresses (diff)
downloadlinux-3a77d291be53fbc619f14a6199b9b4cac036c476.tar.xz
linux-3a77d291be53fbc619f14a6199b9b4cac036c476.zip
[POWERPC] Fix a compile warning in pci_32.c
__must_check, so do so. Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_32.c')
-rw-r--r--arch/powerpc/kernel/pci_32.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index cd35c969bb28..04a3109ae3c6 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -581,8 +581,11 @@ pcibios_assign_resources(void)
if ((r->flags & IORESOURCE_UNSET) && r->end &&
(!ppc_md.pcibios_enable_device_hook ||
!ppc_md.pcibios_enable_device_hook(dev, 1))) {
+ int rc;
+
r->flags &= ~IORESOURCE_UNSET;
- pci_assign_resource(dev, idx);
+ rc = pci_assign_resource(dev, idx);
+ BUG_ON(rc);
}
}