diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2008-02-29 05:09:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-04 18:36:35 -0500 |
commit | dc63644b0ee3b447e879ef8e124657b40e9ea81c (patch) | |
tree | 91b167d5411141dd669a51317aec678a802b3c17 /drivers/ssb | |
parent | 1d60ab0574fae362b1cca0ef52181ef75fd46832 (diff) |
ssb: Add pcibios_enable_device() return value check
This patch has added pcibios_enable_device() return value check.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/driver_pcicore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c index 07ab48d9ceab..74b9a8aea52b 100644 --- a/drivers/ssb/driver_pcicore.c +++ b/drivers/ssb/driver_pcicore.c | |||
@@ -111,7 +111,10 @@ static void __init ssb_fixup_pcibridge(struct pci_dev *dev) | |||
111 | 111 | ||
112 | /* Enable PCI bridge bus mastering and memory space */ | 112 | /* Enable PCI bridge bus mastering and memory space */ |
113 | pci_set_master(dev); | 113 | pci_set_master(dev); |
114 | pcibios_enable_device(dev, ~0); | 114 | if (pcibios_enable_device(dev, ~0) < 0) { |
115 | ssb_printk(KERN_ERR "PCI: SSB bridge enable failed\n"); | ||
116 | return; | ||
117 | } | ||
115 | 118 | ||
116 | /* Enable PCI bridge BAR1 prefetch and burst */ | 119 | /* Enable PCI bridge BAR1 prefetch and burst */ |
117 | pci_write_config_dword(dev, SSB_BAR1_CONTROL, 3); | 120 | pci_write_config_dword(dev, SSB_BAR1_CONTROL, 3); |