Delete another stovepipe: a call to a routine which does nothing.
Remove un-needed semaphore as well.
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>
module_param(debug, bool, 0644);
module_param(debug, bool, 0644);
-static int rpaphp_get_attention_status(struct slot *slot)
-{
- return slot->hotplug_slot->info->attention_status;
-}
-
/**
* set_attention_status - set attention LED
* echo 0 > attention -- set LED OFF
/**
* set_attention_status - set attention LED
* echo 0 > attention -- set LED OFF
* get_power_status - get power status of a slot
* @hotplug_slot: slot to get status
* @value: pointer to store status
* get_power_status - get power status of a slot
* @hotplug_slot: slot to get status
* @value: pointer to store status
*/
static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
{
*/
static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)
{
/**
* get_attention_status - get attention LED status
/**
* get_attention_status - get attention LED status
*/
static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
{
*/
static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
{
struct slot *slot = (struct slot *)hotplug_slot->private;
struct slot *slot = (struct slot *)hotplug_slot->private;
-
- down(&rpaphp_sem);
- *value = rpaphp_get_attention_status(slot);
- up(&rpaphp_sem);
- return retval;
+ *value = slot->hotplug_slot->info->attention_status;
+ return 0;
}
static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value)
}
static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 * value)