]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ssb/driver_pcicore.c
ARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits
[linux-2.6-omap-h63xx.git] / drivers / ssb / driver_pcicore.c
index d28c53868093ce533c88e9b88a80334d9ac5ebca..538c570df3373e147c399a2d0907cf3b20d16762 100644 (file)
@@ -537,6 +537,13 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
        int err = 0;
        u32 tmp;
 
+       if (dev->bus->bustype != SSB_BUSTYPE_PCI) {
+               /* This SSB device is not on a PCI host-bus. So the IRQs are
+                * not routed through the PCI core.
+                * So we must not enable routing through the PCI core. */
+               goto out;
+       }
+
        if (!pdev)
                goto out;
        bus = pdev->bus;