Commit a6776ea2 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: mark functions __init/__exit in acpiphp

These functions are only called from places marked __init or __exit, so
we can mark them also.
parent 9a4d5a43
...@@ -374,7 +374,7 @@ static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp ...@@ -374,7 +374,7 @@ static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp
} }
static int init_acpi (void) static int __init init_acpi (void)
{ {
int retval; int retval;
...@@ -426,7 +426,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot) ...@@ -426,7 +426,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
* init_slots - initialize 'struct slot' structures for each slot * init_slots - initialize 'struct slot' structures for each slot
* *
*/ */
static int init_slots (void) static int __init init_slots (void)
{ {
struct slot *slot; struct slot *slot;
int retval = 0; int retval = 0;
...@@ -492,7 +492,7 @@ static int init_slots (void) ...@@ -492,7 +492,7 @@ static int init_slots (void)
} }
static void cleanup_slots (void) static void __exit cleanup_slots (void)
{ {
struct list_head *tmp, *n; struct list_head *tmp, *n;
struct slot *slot; struct slot *slot;
......
...@@ -1056,7 +1056,7 @@ static struct acpi_pci_driver acpi_pci_hp_driver = { ...@@ -1056,7 +1056,7 @@ static struct acpi_pci_driver acpi_pci_hp_driver = {
* acpiphp_glue_init - initializes all PCI hotplug - ACPI glue data structures * acpiphp_glue_init - initializes all PCI hotplug - ACPI glue data structures
* *
*/ */
int acpiphp_glue_init (void) int __init acpiphp_glue_init(void)
{ {
int num; int num;
...@@ -1077,7 +1077,7 @@ int acpiphp_glue_init (void) ...@@ -1077,7 +1077,7 @@ int acpiphp_glue_init (void)
* *
* This function frees all data allocated in acpiphp_glue_init() * This function frees all data allocated in acpiphp_glue_init()
*/ */
void acpiphp_glue_exit (void) void __exit acpiphp_glue_exit(void)
{ {
struct list_head *l1, *l2, *n1, *n2; struct list_head *l1, *l2, *n1, *n2;
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
...@@ -1124,7 +1124,7 @@ void acpiphp_glue_exit (void) ...@@ -1124,7 +1124,7 @@ void acpiphp_glue_exit (void)
/** /**
* acpiphp_get_num_slots - count number of slots in a system * acpiphp_get_num_slots - count number of slots in a system
*/ */
int acpiphp_get_num_slots (void) int __init acpiphp_get_num_slots(void)
{ {
struct list_head *node; struct list_head *node;
struct acpiphp_bridge *bridge; struct acpiphp_bridge *bridge;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment