summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/ap.c2
-rw-r--r--drivers/staging/greybus/debugfs.c2
-rw-r--r--drivers/staging/greybus/greybus.h4
-rw-r--r--drivers/staging/greybus/operation.c4
-rw-r--r--drivers/staging/greybus/operation.h4
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/greybus/ap.c b/drivers/staging/greybus/ap.c
index 843ddc24f41c..07375cc96bfb 100644
--- a/drivers/staging/greybus/ap.c
+++ b/drivers/staging/greybus/ap.c
@@ -354,7 +354,7 @@ int greybus_svc_in(struct greybus_host_device *hd, u8 *data, int size)
}
EXPORT_SYMBOL_GPL(greybus_svc_in);
-int gb_ap_init(void)
+int __init gb_ap_init(void)
{
ap_workqueue = alloc_ordered_workqueue("greybus_ap", 0);
if (!ap_workqueue)
diff --git a/drivers/staging/greybus/debugfs.c b/drivers/staging/greybus/debugfs.c
index 59c570964b01..725565de5d43 100644
--- a/drivers/staging/greybus/debugfs.c
+++ b/drivers/staging/greybus/debugfs.c
@@ -15,7 +15,7 @@
static struct dentry *gb_debug_root;
-void gb_debugfs_init(void)
+void __init gb_debugfs_init(void)
{
gb_debug_root = debugfs_create_dir("greybus", NULL);
}
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index 05eab4c5f9a0..cf7c4419aad7 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -154,9 +154,9 @@ void greybus_deregister_driver(struct greybus_driver *driver);
int greybus_disabled(void);
int greybus_svc_in(struct greybus_host_device *hd, u8 *data, int length);
-int gb_ap_init(void);
+int gb_ap_init(void) __init;
void gb_ap_exit(void);
-void gb_debugfs_init(void);
+void gb_debugfs_init(void) __init;
void gb_debugfs_cleanup(void);
struct dentry *gb_debugfs_get(void);
diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c
index 88b9f6a40c79..49bc628e621b 100644
--- a/drivers/staging/greybus/operation.c
+++ b/drivers/staging/greybus/operation.c
@@ -932,7 +932,7 @@ int gb_operation_sync(struct gb_connection *connection, int type,
}
EXPORT_SYMBOL_GPL(gb_operation_sync);
-int gb_operation_init(void)
+int __init gb_operation_init(void)
{
gb_message_cache = kmem_cache_create("gb_message_cache",
sizeof(struct gb_message), 0, 0, NULL);
@@ -959,7 +959,7 @@ err_destroy_message_cache:
return -ENOMEM;
}
-void gb_operation_exit(void)
+void __exit gb_operation_exit(void)
{
destroy_workqueue(gb_operation_workqueue);
gb_operation_workqueue = NULL;
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h
index 0199976c9b5f..fcd6566f4bc8 100644
--- a/drivers/staging/greybus/operation.h
+++ b/drivers/staging/greybus/operation.h
@@ -158,7 +158,7 @@ int gb_operation_sync(struct gb_connection *connection, int type,
void *request, int request_size,
void *response, int response_size);
-int gb_operation_init(void);
-void gb_operation_exit(void);
+int gb_operation_init(void) __init;
+void gb_operation_exit(void) __exit;
#endif /* !__OPERATION_H */