Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28267
b: refs/heads/master
c: 466ee36
h: refs/heads/master
i:
  28265: 3406e89
  28263: ef8a318
v: v3
  • Loading branch information
Mike Habeck authored and Greg Kroah-Hartman committed Jun 19, 2006
1 parent 72e6459 commit 31825aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 82d5f4aaf182c306d2c2ef4d3a89d0fb8e386aa8
refs/heads/master: 466ee36b62b4b294ecf68a2eee2e18c6ff8c9be4
4 changes: 3 additions & 1 deletion trunk/drivers/pci/hotplug/sgi_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,12 @@ static inline int get_power_status(struct hotplug_slot *bss_hotplug_slot,
{
struct slot *slot = bss_hotplug_slot->private;
struct pcibus_info *pcibus_info;
u32 power;

pcibus_info = SN_PCIBUS_BUSSOFT_INFO(slot->pci_bus);
mutex_lock(&sn_hotplug_mutex);
*value = pcibus_info->pbi_enabled_devices & (1 << slot->device_num);
power = pcibus_info->pbi_enabled_devices & (1 << slot->device_num);
*value = power ? 1 : 0;
mutex_unlock(&sn_hotplug_mutex);
return 0;
}
Expand Down

0 comments on commit 31825aa

Please sign in to comment.