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_pci.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_pci.c')
-rw-r--r-- | drivers/pci/hotplug/rpaphp_pci.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c index 881e8073c807..ba8c83770abe 100644 --- a/drivers/pci/hotplug/rpaphp_pci.c +++ b/drivers/pci/hotplug/rpaphp_pci.c | |||
@@ -183,9 +183,14 @@ exit_rc: | |||
183 | 183 | ||
184 | int rpaphp_register_pci_slot(struct slot *slot) | 184 | int rpaphp_register_pci_slot(struct slot *slot) |
185 | { | 185 | { |
186 | int rc, level; | ||
186 | struct hotplug_slot_info *info = slot->hotplug_slot->info; | 187 | struct hotplug_slot_info *info = slot->hotplug_slot->info; |
187 | 188 | ||
188 | rpaphp_get_power_status(slot, &info->power_status); | 189 | rc = rtas_get_power_level(slot->power_domain, &level); |
190 | if (rc) | ||
191 | return rc; | ||
192 | info->power_status = level; | ||
193 | |||
189 | rpaphp_get_pci_adapter_status(slot, 1, &info->adapter_status); | 194 | rpaphp_get_pci_adapter_status(slot, 1, &info->adapter_status); |
190 | 195 | ||
191 | if (info->adapter_status == NOT_VALID) { | 196 | if (info->adapter_status == NOT_VALID) { |