diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-09 17:03:42 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-14 16:13:41 -0500 |
commit | 5efa9d5a8b18841c9c62208a494d7f519238979a (patch) | |
tree | c3d65b0b6bd54ca614e4e7e4b8eb295117ba9d78 /block-parallels.c | |
parent | 0bfe3ca51ebddbf2cc099fa34f359bd1ac4f65e6 (diff) |
Convert block infrastructure to use new module init functionality
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block-parallels.c')
-rw-r--r-- | block-parallels.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/block-parallels.c b/block-parallels.c index 18c3d834e7..0b64a5c625 100644 --- a/block-parallels.c +++ b/block-parallels.c @@ -25,6 +25,7 @@ */ #include "qemu-common.h" #include "block_int.h" +#include "module.h" /**************************************************************/ @@ -163,7 +164,7 @@ static void parallels_close(BlockDriverState *bs) close(s->fd); } -BlockDriver bdrv_parallels = { +static BlockDriver bdrv_parallels = { .format_name = "parallels", .instance_size = sizeof(BDRVParallelsState), .bdrv_probe = parallels_probe, @@ -171,3 +172,10 @@ BlockDriver bdrv_parallels = { .bdrv_read = parallels_read, .bdrv_close = parallels_close, }; + +static void bdrv_parallels_init(void) +{ + bdrv_register(&bdrv_parallels); +} + +block_init(bdrv_parallels_init); |