aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ssb/driver_pcicore.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c
index e6ac3177fbbe..32c535f5ce31 100644
--- a/drivers/ssb/driver_pcicore.c
+++ b/drivers/ssb/driver_pcicore.c
@@ -516,10 +516,14 @@ static void ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore *pc)
516 516
517static void __devinit ssb_pcicore_init_clientmode(struct ssb_pcicore *pc) 517static void __devinit ssb_pcicore_init_clientmode(struct ssb_pcicore *pc)
518{ 518{
519 ssb_pcicore_fix_sprom_core_index(pc); 519 struct ssb_device *pdev = pc->dev;
520 struct ssb_bus *bus = pdev->bus;
521
522 if (bus->bustype == SSB_BUSTYPE_PCI)
523 ssb_pcicore_fix_sprom_core_index(pc);
520 524
521 /* Disable PCI interrupts. */ 525 /* Disable PCI interrupts. */
522 ssb_write32(pc->dev, SSB_INTVEC, 0); 526 ssb_write32(pdev, SSB_INTVEC, 0);
523 527
524 /* Additional PCIe always once-executed workarounds */ 528 /* Additional PCIe always once-executed workarounds */
525 if (pc->dev->id.coreid == SSB_DEV_PCIE) { 529 if (pc->dev->id.coreid == SSB_DEV_PCIE) {