aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_balloon.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-02-13 01:29:28 -0500
committerRusty Russell <rusty@rustcorp.com.au>2013-02-13 01:30:37 -0500
commitb2a17029c29bb6f7dec580feffa715b9fcf51e42 (patch)
tree2db568a277276ca7d4bf49ce57935827ae6ee1ff /drivers/virtio/virtio_balloon.c
parent6e105e0593055dc4aae21df7bca3868045754148 (diff)
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 797e1c79a104..8dab163c5ef0 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -560,18 +560,7 @@ static struct virtio_driver virtio_balloon_driver = {
560#endif 560#endif
561}; 561};
562 562
563static int __init init(void) 563module_virtio_driver(virtio_balloon_driver);
564{
565 return register_virtio_driver(&virtio_balloon_driver);
566}
567
568static void __exit fini(void)
569{
570 unregister_virtio_driver(&virtio_balloon_driver);
571}
572module_init(init);
573module_exit(fini);
574
575MODULE_DEVICE_TABLE(virtio, id_table); 564MODULE_DEVICE_TABLE(virtio, id_table);
576MODULE_DESCRIPTION("Virtio balloon driver"); 565MODULE_DESCRIPTION("Virtio balloon driver");
577MODULE_LICENSE("GPL"); 566MODULE_LICENSE("GPL");