lguest: fix guest crash on non-linear addresses in gdt pvops
[safe/jmp/linux-2.6] / drivers / pnp / quirks.c
index 414bb09..8473fe5 100644 (file)
@@ -245,7 +245,7 @@ static void quirk_system_pci_resources(struct pnp_dev *dev)
         */
        for_each_pci_dev(pdev) {
                for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
-                       unsigned int type;
+                       unsigned long type;
 
                        type = pci_resource_flags(pdev, i) &
                                        (IORESOURCE_IO | IORESOURCE_MEM);
@@ -337,7 +337,7 @@ void pnp_fixup_device(struct pnp_dev *dev)
        for (f = pnp_fixups; *f->id; f++) {
                if (!compare_pnp_id(dev->id, f->id))
                        continue;
-               dev_dbg(&dev->dev, "%s: calling %pF\n", f->id,
+               pnp_dbg(&dev->dev, "%s: calling %pF\n", f->id,
                        f->quirk_function);
                f->quirk_function(dev);
        }