summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bootrom.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-06-09 16:34:35 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-09 17:28:02 -0700
commitaa62b5e49a596cad71a816fc36a4da6ad0c0cd0f (patch)
tree6316cf5e0a76346ad400566d1fd427ae0e638e7d /drivers/staging/greybus/bootrom.c
parent9e50e987f55dc16364786525abdb4c7eac50e00b (diff)
downloadlinux-aa62b5e49a596cad71a816fc36a4da6ad0c0cd0f.tar.bz2
greybus: bootrom: Compile as a separate module
User space doesn't break anymore with new greybus modules and its time to make bootrom a separate module. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bootrom.c')
-rw-r--r--drivers/staging/greybus/bootrom.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/staging/greybus/bootrom.c b/drivers/staging/greybus/bootrom.c
index f375a879242c..2cebffab8d9d 100644
--- a/drivers/staging/greybus/bootrom.c
+++ b/drivers/staging/greybus/bootrom.c
@@ -12,7 +12,6 @@
#include <linux/mutex.h>
#include <linux/workqueue.h>
-#include "bootrom.h"
#include "greybus.h"
/* Timeout, in jiffies, within which the next request must be received */
@@ -455,12 +454,6 @@ static struct greybus_driver gb_bootrom_driver = {
.id_table = gb_bootrom_id_table,
};
-int gb_bootrom_init(void)
-{
- return greybus_register(&gb_bootrom_driver);
-}
+module_greybus_driver(gb_bootrom_driver);
-void gb_bootrom_exit(void)
-{
- greybus_deregister(&gb_bootrom_driver);
-}
+MODULE_LICENSE("GPL v2");