mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
[PATCH] powerpc/PCI hotplug: minor cleanup forward decls
Minor cleanup. Move structure initializer to bottom of file, this allows elimination of eyeball-strain-inducing forward declarations. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Acked-by: John Rose <johnrose@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f6afbad82c
commit
b64a71ab5c
1 changed files with 11 additions and 19 deletions
|
@ -56,25 +56,6 @@ MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
module_param(debug, bool, 0644);
|
module_param(debug, bool, 0644);
|
||||||
|
|
||||||
static int enable_slot(struct hotplug_slot *slot);
|
|
||||||
static int disable_slot(struct hotplug_slot *slot);
|
|
||||||
static int set_attention_status(struct hotplug_slot *slot, u8 value);
|
|
||||||
static int get_power_status(struct hotplug_slot *slot, u8 * value);
|
|
||||||
static int get_attention_status(struct hotplug_slot *slot, u8 * value);
|
|
||||||
static int get_adapter_status(struct hotplug_slot *slot, u8 * value);
|
|
||||||
static int get_max_bus_speed(struct hotplug_slot *hotplug_slot, enum pci_bus_speed *value);
|
|
||||||
|
|
||||||
struct hotplug_slot_ops rpaphp_hotplug_slot_ops = {
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.enable_slot = enable_slot,
|
|
||||||
.disable_slot = disable_slot,
|
|
||||||
.set_attention_status = set_attention_status,
|
|
||||||
.get_power_status = get_power_status,
|
|
||||||
.get_attention_status = get_attention_status,
|
|
||||||
.get_adapter_status = get_adapter_status,
|
|
||||||
.get_max_bus_speed = get_max_bus_speed,
|
|
||||||
};
|
|
||||||
|
|
||||||
static int rpaphp_get_attention_status(struct slot *slot)
|
static int rpaphp_get_attention_status(struct slot *slot)
|
||||||
{
|
{
|
||||||
return slot->hotplug_slot->info->attention_status;
|
return slot->hotplug_slot->info->attention_status;
|
||||||
|
@ -455,6 +436,17 @@ static int disable_slot(struct hotplug_slot *hotplug_slot)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct hotplug_slot_ops rpaphp_hotplug_slot_ops = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.enable_slot = enable_slot,
|
||||||
|
.disable_slot = disable_slot,
|
||||||
|
.set_attention_status = set_attention_status,
|
||||||
|
.get_power_status = get_power_status,
|
||||||
|
.get_attention_status = get_attention_status,
|
||||||
|
.get_adapter_status = get_adapter_status,
|
||||||
|
.get_max_bus_speed = get_max_bus_speed,
|
||||||
|
};
|
||||||
|
|
||||||
module_init(rpaphp_init);
|
module_init(rpaphp_init);
|
||||||
module_exit(rpaphp_exit);
|
module_exit(rpaphp_exit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue