Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68012
b: refs/heads/master
c: 1cf53d5
h: refs/heads/master
v: v3
  • Loading branch information
Kristen Carlson Accardi authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent bacdb82 commit 0431c17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89913bf77a60fdb6ff204a670d3e191848a7b2c8
refs/heads/master: 1cf53d5ddb93b77ce1e277da85fe695e4c2a667d
18 changes: 12 additions & 6 deletions trunk/drivers/pci/hotplug/pciehp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ int pciehp_configure_device(struct slot *p_slot)

int pciehp_unconfigure_device(struct slot *p_slot)
{
int rc = 0;
int ret, rc = 0;
int j;
u8 bctl = 0;
u8 presence = 0;
struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate;

dbg("%s: bus/dev = %x/%x\n", __FUNCTION__, p_slot->bus,
Expand All @@ -263,12 +264,17 @@ int pciehp_unconfigure_device(struct slot *p_slot)
continue;
}
if (temp->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
pci_read_config_byte(temp, PCI_BRIDGE_CONTROL, &bctl);
if (bctl & PCI_BRIDGE_CTL_VGA) {
err("Cannot remove display device %s\n",
ret = p_slot->hpc_ops->get_adapter_status(p_slot,
&presence);
if (!ret && presence) {
pci_read_config_byte(temp, PCI_BRIDGE_CONTROL,
&bctl);
if (bctl & PCI_BRIDGE_CTL_VGA) {
err("Cannot remove display device %s\n",
pci_name(temp));
pci_dev_put(temp);
continue;
pci_dev_put(temp);
continue;
}
}
}
pci_remove_bus_device(temp);
Expand Down

0 comments on commit 0431c17

Please sign in to comment.