diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-13 01:29:28 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-13 01:30:37 -0500 |
commit | b2a17029c29bb6f7dec580feffa715b9fcf51e42 (patch) | |
tree | 2db568a277276ca7d4bf49ce57935827ae6ee1ff /drivers/virtio/virtio_balloon.c | |
parent | 6e105e0593055dc4aae21df7bca3868045754148 (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.c | 13 |
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 | ||
563 | static int __init init(void) | 563 | module_virtio_driver(virtio_balloon_driver); |
564 | { | ||
565 | return register_virtio_driver(&virtio_balloon_driver); | ||
566 | } | ||
567 | |||
568 | static void __exit fini(void) | ||
569 | { | ||
570 | unregister_virtio_driver(&virtio_balloon_driver); | ||
571 | } | ||
572 | module_init(init); | ||
573 | module_exit(fini); | ||
574 | |||
575 | MODULE_DEVICE_TABLE(virtio, id_table); | 564 | MODULE_DEVICE_TABLE(virtio, id_table); |
576 | MODULE_DESCRIPTION("Virtio balloon driver"); | 565 | MODULE_DESCRIPTION("Virtio balloon driver"); |
577 | MODULE_LICENSE("GPL"); | 566 | MODULE_LICENSE("GPL"); |