summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_balloon.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-02-13 16:59:28 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-02-13 17:00:37 +1030
commitb2a17029c29bb6f7dec580feffa715b9fcf51e42 (patch)
tree2db568a277276ca7d4bf49ce57935827ae6ee1ff /drivers/virtio/virtio_balloon.c
parent6e105e0593055dc4aae21df7bca3868045754148 (diff)
downloadop-kernel-dev-b2a17029c29bb6f7dec580feffa715b9fcf51e42.zip
op-kernel-dev-b2a17029c29bb6f7dec580feffa715b9fcf51e42.tar.gz
virtio: use module_virtio_driver.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r--drivers/virtio/virtio_balloon.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 797e1c7..8dab163 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -560,18 +560,7 @@ static struct virtio_driver virtio_balloon_driver = {
#endif
};
-static int __init init(void)
-{
- return register_virtio_driver(&virtio_balloon_driver);
-}
-
-static void __exit fini(void)
-{
- unregister_virtio_driver(&virtio_balloon_driver);
-}
-module_init(init);
-module_exit(fini);
-
+module_virtio_driver(virtio_balloon_driver);
MODULE_DEVICE_TABLE(virtio, id_table);
MODULE_DESCRIPTION("Virtio balloon driver");
MODULE_LICENSE("GPL");
OpenPOWER on IntegriCloud