From 31825aae6bf0dc619e845e547c94b51a547386a8 Mon Sep 17 00:00:00 2001 From: Mike Habeck Date: Sat, 6 May 2006 09:01:59 -0500 Subject: [PATCH] --- yaml --- r: 28267 b: refs/heads/master c: 466ee36b62b4b294ecf68a2eee2e18c6ff8c9be4 h: refs/heads/master i: 28265: 3406e898592b1446c25cfa6334c3dc91d72ef873 28263: ef8a3189069fe509c16556d7658823e547f0f4f1 v: v3 --- [refs] | 2 +- trunk/drivers/pci/hotplug/sgi_hotplug.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 270c09e93cc6..c72b978da3bd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 82d5f4aaf182c306d2c2ef4d3a89d0fb8e386aa8 +refs/heads/master: 466ee36b62b4b294ecf68a2eee2e18c6ff8c9be4 diff --git a/trunk/drivers/pci/hotplug/sgi_hotplug.c b/trunk/drivers/pci/hotplug/sgi_hotplug.c index cfee9db52c49..f31d83c2c633 100644 --- a/trunk/drivers/pci/hotplug/sgi_hotplug.c +++ b/trunk/drivers/pci/hotplug/sgi_hotplug.c @@ -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; }