]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/virtio/virtio.c
virtio: Allow virtio to be modular and used by modules
[linux-2.6-omap-h63xx.git] / drivers / virtio / virtio.c
index 7dddb1860936a1c35066cd08596d67f3d46501f8..b535483bc556f5f153eb434583c8dc6593377164 100644 (file)
@@ -162,4 +162,12 @@ static int virtio_init(void)
                panic("virtio bus registration failed");
        return 0;
 }
+
+static void __exit virtio_exit(void)
+{
+       bus_unregister(&virtio_bus);
+}
 core_initcall(virtio_init);
+module_exit(virtio_exit);
+
+MODULE_LICENSE("GPL");