summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-06-11 09:22:51 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-06-11 09:35:00 -0700
commit3d0421e0ab5315051b949ea70dee37c15e860706 (patch)
tree8d38b244be53b160f3d2191cfd3e7945f07c5634
parent0ffacf3b8ae169a26c941345b7fa54e1624f6b95 (diff)
greybus: remove __init from .h files
__init does not belong in a .h file, as it does not do anything there, so remove all instances of it. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r--drivers/staging/greybus/endo.h2
-rw-r--r--drivers/staging/greybus/greybus.h4
-rw-r--r--drivers/staging/greybus/operation.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/greybus/endo.h b/drivers/staging/greybus/endo.h
index ad5728c5b4a0..3622428552a3 100644
--- a/drivers/staging/greybus/endo.h
+++ b/drivers/staging/greybus/endo.h
@@ -49,7 +49,7 @@ struct gb_endo {
/* Greybus "private" definitions */
struct greybus_host_device;
-int gb_endo_init(void) __init;
+int gb_endo_init(void);
void gb_endo_exit(void);
struct gb_endo *gb_endo_create(struct greybus_host_device *hd,
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index cf7c4419aad7..05eab4c5f9a0 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) __init;
+int gb_ap_init(void);
void gb_ap_exit(void);
-void gb_debugfs_init(void) __init;
+void gb_debugfs_init(void);
void gb_debugfs_cleanup(void);
struct dentry *gb_debugfs_get(void);
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h
index 6eed6bc62148..0199976c9b5f 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) __init;
+int gb_operation_init(void);
void gb_operation_exit(void);
#endif /* !__OPERATION_H */