aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/rpaphp_core.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-04-13 18:34:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-02 22:02:39 -0400
commit427310ff02e80cc80826407c0121cec3694c9e7d (patch)
tree7c7577d89e56f12225a52609ba92e24216244a01 /drivers/pci/hotplug/rpaphp_core.c
parent517d5a0417e19101eaa769039d1921d626ee546c (diff)
PCI: rpaphp: Remve another call that is a wrapper
Remove another stovepipe: a call which wraps another call, and just adds printks. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Cc: John Rose <johnrose@austin.ibm.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/rpaphp_core.c')
-rw-r--r--drivers/pci/hotplug/rpaphp_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c
index ca95e1515d6f..2d919fb1931c 100644
--- a/drivers/pci/hotplug/rpaphp_core.c
+++ b/drivers/pci/hotplug/rpaphp_core.c
@@ -100,11 +100,13 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value)
100 */ 100 */
101static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value) 101static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
102{ 102{
103 int retval; 103 int retval, level;
104 struct slot *slot = (struct slot *)hotplug_slot->private; 104 struct slot *slot = (struct slot *)hotplug_slot->private;
105 105
106 down(&rpaphp_sem); 106 down(&rpaphp_sem);
107 retval = rpaphp_get_power_status(slot, value); 107 retval = rtas_get_power_level (slot->power_domain, &level);
108 if (!retval)
109 *value = level;
108 up(&rpaphp_sem); 110 up(&rpaphp_sem);
109 return retval; 111 return retval;
110} 112}