diff options
-rw-r--r-- | drivers/pci/hotplug/rpaphp_core.c | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c index c0e521c8f9ef..6e79f5675b0d 100644 --- a/drivers/pci/hotplug/rpaphp_core.c +++ b/drivers/pci/hotplug/rpaphp_core.c | |||
@@ -56,25 +56,6 @@ MODULE_LICENSE("GPL"); | |||
56 | 56 | ||
57 | module_param(debug, bool, 0644); | 57 | module_param(debug, bool, 0644); |
58 | 58 | ||
59 | static int enable_slot(struct hotplug_slot *slot); | ||
60 | static int disable_slot(struct hotplug_slot *slot); | ||
61 | static int set_attention_status(struct hotplug_slot *slot, u8 value); | ||
62 | static int get_power_status(struct hotplug_slot *slot, u8 * value); | ||
63 | static int get_attention_status(struct hotplug_slot *slot, u8 * value); | ||
64 | static int get_adapter_status(struct hotplug_slot *slot, u8 * value); | ||
65 | static int get_max_bus_speed(struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value); | ||
66 | |||
67 | struct hotplug_slot_ops rpaphp_hotplug_slot_ops = { | ||
68 | .owner = THIS_MODULE, | ||
69 | .enable_slot = enable_slot, | ||
70 | .disable_slot = disable_slot, | ||
71 | .set_attention_status = set_attention_status, | ||
72 | .get_power_status = get_power_status, | ||
73 | .get_attention_status = get_attention_status, | ||
74 | .get_adapter_status = get_adapter_status, | ||
75 | .get_max_bus_speed = get_max_bus_speed, | ||
76 | }; | ||
77 | |||
78 | static int rpaphp_get_attention_status(struct slot *slot) | 59 | static int rpaphp_get_attention_status(struct slot *slot) |
79 | { | 60 | { |
80 | return slot->hotplug_slot->info->attention_status; | 61 | return slot->hotplug_slot->info->attention_status; |
@@ -455,6 +436,17 @@ static int disable_slot(struct hotplug_slot *hotplug_slot) | |||
455 | return retval; | 436 | return retval; |
456 | } | 437 | } |
457 | 438 | ||
439 | struct hotplug_slot_ops rpaphp_hotplug_slot_ops = { | ||
440 | .owner = THIS_MODULE, | ||
441 | .enable_slot = enable_slot, | ||
442 | .disable_slot = disable_slot, | ||
443 | .set_attention_status = set_attention_status, | ||
444 | .get_power_status = get_power_status, | ||
445 | .get_attention_status = get_attention_status, | ||
446 | .get_adapter_status = get_adapter_status, | ||
447 | .get_max_bus_speed = get_max_bus_speed, | ||
448 | }; | ||
449 | |||
458 | module_init(rpaphp_init); | 450 | module_init(rpaphp_init); |
459 | module_exit(rpaphp_exit); | 451 | module_exit(rpaphp_exit); |
460 | 452 | ||