parisc: dino.c - check return value of pci_assign_resource()
authorHelge Deller <deller@gmx.de>
Sun, 2 Aug 2009 13:17:37 +0000 (15:17 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 2 Aug 2009 13:17:37 +0000 (15:17 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/dino.c

index c590974..d69bde6 100644 (file)
@@ -614,7 +614,7 @@ dino_fixup_bus(struct pci_bus *bus)
                            dev_name(&bus->self->dev), i,
                            bus->self->resource[i].start,
                            bus->self->resource[i].end);
-                       pci_assign_resource(bus->self, i);
+                       WARN_ON(pci_assign_resource(bus->self, i));
                        DBG("DEBUG %s after assign %d [0x%lx,0x%lx]\n",
                            dev_name(&bus->self->dev), i,
                            bus->self->resource[i].start,