pciehp: remove unnecessary php_ctlr
The struct php_ctlr seems to be only for complicating codes. This patch removes struct php_ctlr and related codes. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
2410fa4eae
commit
48fe391517
@@ -48,9 +48,8 @@ static inline char *slot_name(struct slot *p_slot)
|
||||
return p_slot->hotplug_slot->name;
|
||||
}
|
||||
|
||||
u8 pciehp_handle_attention_button(u8 hp_slot, void *inst_id)
|
||||
u8 pciehp_handle_attention_button(u8 hp_slot, struct controller *ctrl)
|
||||
{
|
||||
struct controller *ctrl = (struct controller *) inst_id;
|
||||
struct slot *p_slot;
|
||||
u8 rc = 0;
|
||||
u8 getstatus;
|
||||
@@ -101,9 +100,8 @@ u8 pciehp_handle_attention_button(u8 hp_slot, void *inst_id)
|
||||
|
||||
}
|
||||
|
||||
u8 pciehp_handle_switch_change(u8 hp_slot, void *inst_id)
|
||||
u8 pciehp_handle_switch_change(u8 hp_slot, struct controller *ctrl)
|
||||
{
|
||||
struct controller *ctrl = (struct controller *) inst_id;
|
||||
struct slot *p_slot;
|
||||
u8 rc = 0;
|
||||
u8 getstatus;
|
||||
@@ -143,9 +141,8 @@ u8 pciehp_handle_switch_change(u8 hp_slot, void *inst_id)
|
||||
return rc;
|
||||
}
|
||||
|
||||
u8 pciehp_handle_presence_change(u8 hp_slot, void *inst_id)
|
||||
u8 pciehp_handle_presence_change(u8 hp_slot, struct controller *ctrl)
|
||||
{
|
||||
struct controller *ctrl = (struct controller *) inst_id;
|
||||
struct slot *p_slot;
|
||||
u8 presence_save, rc = 0;
|
||||
struct event_info *taskInfo;
|
||||
@@ -187,9 +184,8 @@ u8 pciehp_handle_presence_change(u8 hp_slot, void *inst_id)
|
||||
return rc;
|
||||
}
|
||||
|
||||
u8 pciehp_handle_power_fault(u8 hp_slot, void *inst_id)
|
||||
u8 pciehp_handle_power_fault(u8 hp_slot, struct controller *ctrl)
|
||||
{
|
||||
struct controller *ctrl = (struct controller *) inst_id;
|
||||
struct slot *p_slot;
|
||||
u8 rc = 0;
|
||||
struct event_info *taskInfo;
|
||||
|
Reference in New Issue
Block a user