diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-04-13 18:34:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-02 22:02:39 -0400 |
commit | 427310ff02e80cc80826407c0121cec3694c9e7d (patch) | |
tree | 7c7577d89e56f12225a52609ba92e24216244a01 /drivers/pci/hotplug/rpaphp_slot.c | |
parent | 517d5a0417e19101eaa769039d1921d626ee546c (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_slot.c')
-rw-r--r-- | drivers/pci/hotplug/rpaphp_slot.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/pci/hotplug/rpaphp_slot.c b/drivers/pci/hotplug/rpaphp_slot.c index 9b9400727985..30c9dc98e4ec 100644 --- a/drivers/pci/hotplug/rpaphp_slot.c +++ b/drivers/pci/hotplug/rpaphp_slot.c | |||
@@ -184,24 +184,6 @@ sysfs_fail: | |||
184 | return retval; | 184 | return retval; |
185 | } | 185 | } |
186 | 186 | ||
187 | int rpaphp_get_power_status(struct slot *slot, u8 * value) | ||
188 | { | ||
189 | int rc = 0, level; | ||
190 | |||
191 | rc = rtas_get_power_level(slot->power_domain, &level); | ||
192 | if (rc < 0) { | ||
193 | err("failed to get power-level for slot(%s), rc=0x%x\n", | ||
194 | slot->location, rc); | ||
195 | return rc; | ||
196 | } | ||
197 | |||
198 | dbg("%s the power level of slot %s(pwd-domain:0x%x) is %d\n", | ||
199 | __FUNCTION__, slot->name, slot->power_domain, level); | ||
200 | *value = level; | ||
201 | |||
202 | return rc; | ||
203 | } | ||
204 | |||
205 | int rpaphp_set_attention_status(struct slot *slot, u8 status) | 187 | int rpaphp_set_attention_status(struct slot *slot, u8 status) |
206 | { | 188 | { |
207 | int rc; | 189 | int rc; |