Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53368
b: refs/heads/master
c: ebf42c0
h: refs/heads/master
v: v3
  • Loading branch information
Linas Vepstas authored and Greg Kroah-Hartman committed May 3, 2007
1 parent bfc0e42 commit f7da9d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf0af511fcc856649a2a39c627828695b580d124
refs/heads/master: ebf42c0edd5ee325043d4ae8fbb8caebd707e791
17 changes: 2 additions & 15 deletions trunk/drivers/pci/hotplug/rpaphp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ MODULE_LICENSE("GPL");

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
Expand Down Expand Up @@ -95,8 +90,6 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 value)
* 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)
{
Expand All @@ -113,18 +106,12 @@ static int get_power_status(struct hotplug_slot *hotplug_slot, u8 * value)

/**
* get_attention_status - get attention LED status
*
*
*/
static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 * value)
{
int retval = 0;
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)
Expand Down

0 comments on commit f7da9d8

Please sign in to comment.