diff options
Diffstat (limited to 'block-bochs.c')
-rw-r--r-- | block-bochs.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/block-bochs.c b/block-bochs.c index 7a75412d84..bac81c42b7 100644 --- a/block-bochs.c +++ b/block-bochs.c @@ -24,6 +24,7 @@ */ #include "qemu-common.h" #include "block_int.h" +#include "module.h" /**************************************************************/ @@ -241,7 +242,7 @@ static void bochs_close(BlockDriverState *bs) close(s->fd); } -BlockDriver bdrv_bochs = { +static BlockDriver bdrv_bochs = { .format_name = "bochs", .instance_size = sizeof(BDRVBochsState), .bdrv_probe = bochs_probe, @@ -249,3 +250,10 @@ BlockDriver bdrv_bochs = { .bdrv_read = bochs_read, .bdrv_close = bochs_close, }; + +static void bdrv_bochs_init(void) +{ + bdrv_register(&bdrv_bochs); +} + +block_init(bdrv_bochs_init); |