Skip to content

Commit

Permalink
ssb: Add pcibios_enable_device() return value check
Browse files Browse the repository at this point in the history
This patch has added pcibios_enable_device() return value check.

Signed-off-by: Yoichi Yuasa <[email protected]>
Signed-off-by: Michael Buesch <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Yoichi Yuasa authored and linvjw committed Mar 4, 2008
1 parent 1d60ab0 commit dc63644
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/ssb/driver_pcicore.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ static void __init ssb_fixup_pcibridge(struct pci_dev *dev)

/* Enable PCI bridge bus mastering and memory space */
pci_set_master(dev);
pcibios_enable_device(dev, ~0);
if (pcibios_enable_device(dev, ~0) < 0) {
ssb_printk(KERN_ERR "PCI: SSB bridge enable failed\n");
return;
}

/* Enable PCI bridge BAR1 prefetch and burst */
pci_write_config_dword(dev, SSB_BAR1_CONTROL, 3);
Expand Down

0 comments on commit dc63644

Please sign in to comment.