diff options
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); |