diff options
-rw-r--r-- | drivers/xen/xenbus/xenbus_dev_backend.c | 13 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_dev_frontend.c | 13 |
2 files changed, 4 insertions, 22 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_backend.c b/drivers/xen/xenbus/xenbus_dev_backend.c index ee6d9efd7b76..4a41ac9af966 100644 --- a/drivers/xen/xenbus/xenbus_dev_backend.c +++ b/drivers/xen/xenbus/xenbus_dev_backend.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <linux/mm.h> | 5 | #include <linux/mm.h> |
6 | #include <linux/fs.h> | 6 | #include <linux/fs.h> |
7 | #include <linux/miscdevice.h> | 7 | #include <linux/miscdevice.h> |
8 | #include <linux/module.h> | 8 | #include <linux/init.h> |
9 | #include <linux/capability.h> | 9 | #include <linux/capability.h> |
10 | 10 | ||
11 | #include <xen/xen.h> | 11 | #include <xen/xen.h> |
@@ -18,8 +18,6 @@ | |||
18 | 18 | ||
19 | #include "xenbus_comms.h" | 19 | #include "xenbus_comms.h" |
20 | 20 | ||
21 | MODULE_LICENSE("GPL"); | ||
22 | |||
23 | static int xenbus_backend_open(struct inode *inode, struct file *filp) | 21 | static int xenbus_backend_open(struct inode *inode, struct file *filp) |
24 | { | 22 | { |
25 | if (!capable(CAP_SYS_ADMIN)) | 23 | if (!capable(CAP_SYS_ADMIN)) |
@@ -132,11 +130,4 @@ static int __init xenbus_backend_init(void) | |||
132 | pr_err("Could not register xenbus backend device\n"); | 130 | pr_err("Could not register xenbus backend device\n"); |
133 | return err; | 131 | return err; |
134 | } | 132 | } |
135 | 133 | device_initcall(xenbus_backend_init); | |
136 | static void __exit xenbus_backend_exit(void) | ||
137 | { | ||
138 | misc_deregister(&xenbus_backend_dev); | ||
139 | } | ||
140 | |||
141 | module_init(xenbus_backend_init); | ||
142 | module_exit(xenbus_backend_exit); | ||
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index 9433e46518c8..8c0a359ab4a8 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c | |||
@@ -55,7 +55,7 @@ | |||
55 | #include <linux/string.h> | 55 | #include <linux/string.h> |
56 | #include <linux/slab.h> | 56 | #include <linux/slab.h> |
57 | #include <linux/miscdevice.h> | 57 | #include <linux/miscdevice.h> |
58 | #include <linux/module.h> | 58 | #include <linux/init.h> |
59 | 59 | ||
60 | #include "xenbus_comms.h" | 60 | #include "xenbus_comms.h" |
61 | 61 | ||
@@ -63,8 +63,6 @@ | |||
63 | #include <xen/xen.h> | 63 | #include <xen/xen.h> |
64 | #include <asm/xen/hypervisor.h> | 64 | #include <asm/xen/hypervisor.h> |
65 | 65 | ||
66 | MODULE_LICENSE("GPL"); | ||
67 | |||
68 | /* | 66 | /* |
69 | * An element of a list of outstanding transactions, for which we're | 67 | * An element of a list of outstanding transactions, for which we're |
70 | * still waiting a reply. | 68 | * still waiting a reply. |
@@ -624,11 +622,4 @@ static int __init xenbus_init(void) | |||
624 | pr_err("Could not register xenbus frontend device\n"); | 622 | pr_err("Could not register xenbus frontend device\n"); |
625 | return err; | 623 | return err; |
626 | } | 624 | } |
627 | 625 | device_initcall(xenbus_init); | |
628 | static void __exit xenbus_exit(void) | ||
629 | { | ||
630 | misc_deregister(&xenbus_dev); | ||
631 | } | ||
632 | |||
633 | module_init(xenbus_init); | ||
634 | module_exit(xenbus_exit); | ||