Merge tag 'for-linus-4.6-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / drivers / xen / xenbus / xenbus_dev_frontend.c
index 912b64edb42b4a016201b4e7d1a695ca25056610..cacf30d14747baa20d5f2d8a6a999ebdcba14018 100644 (file)
@@ -55,7 +55,7 @@
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/miscdevice.h>
-#include <linux/module.h>
+#include <linux/init.h>
 
 #include "xenbus_comms.h"
 
@@ -63,8 +63,6 @@
 #include <xen/xen.h>
 #include <asm/xen/hypervisor.h>
 
-MODULE_LICENSE("GPL");
-
 /*
  * An element of a list of outstanding transactions, for which we're
  * still waiting a reply.
@@ -626,11 +624,4 @@ static int __init xenbus_init(void)
                pr_err("Could not register xenbus frontend device\n");
        return err;
 }
-
-static void __exit xenbus_exit(void)
-{
-       misc_deregister(&xenbus_dev);
-}
-
-module_init(xenbus_init);
-module_exit(xenbus_exit);
+device_initcall(xenbus_init);
This page took 0.023868 seconds and 5 git commands to generate.