git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
pci
/
hotplug
/
shpchp_ctrl.c
diff --git
a/drivers/pci/hotplug/shpchp_ctrl.c
b/drivers/pci/hotplug/shpchp_ctrl.c
index
7ca8e93
..
d71925c
100644
(file)
--- a/
drivers/pci/hotplug/shpchp_ctrl.c
+++ b/
drivers/pci/hotplug/shpchp_ctrl.c
@@
-2163,12
+2163,14
@@
int shpchp_disable_slot (struct slot *p_slot)
u32 rc = 0;
int ret = 0;
unsigned int devfn;
u32 rc = 0;
int ret = 0;
unsigned int devfn;
- struct pci_bus *pci_bus
= p_slot->ctrl->pci_dev->subordinate
;
+ struct pci_bus *pci_bus;
struct pci_func *func;
if (!p_slot->ctrl)
return 1;
struct pci_func *func;
if (!p_slot->ctrl)
return 1;
+ pci_bus = p_slot->ctrl->pci_dev->subordinate;
+
/* Check to see if (latch closed, card present, power on) */
down(&p_slot->ctrl->crit_sect);
/* Check to see if (latch closed, card present, power on) */
down(&p_slot->ctrl->crit_sect);