aboutsummaryrefslogtreecommitdiff
path: root/block-vpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-vpc.c')
-rw-r--r--block-vpc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/block-vpc.c b/block-vpc.c
index 71a171d0eb..211ae5c72f 100644
--- a/block-vpc.c
+++ b/block-vpc.c
@@ -24,6 +24,7 @@
*/
#include "qemu-common.h"
#include "block_int.h"
+#include "module.h"
/**************************************************************/
@@ -586,7 +587,7 @@ static void vpc_close(BlockDriverState *bs)
bdrv_delete(s->hd);
}
-BlockDriver bdrv_vpc = {
+static BlockDriver bdrv_vpc = {
.format_name = "vpc",
.instance_size = sizeof(BDRVVPCState),
.bdrv_probe = vpc_probe,
@@ -596,3 +597,10 @@ BlockDriver bdrv_vpc = {
.bdrv_close = vpc_close,
.bdrv_create = vpc_create,
};
+
+static void bdrv_vpc_init(void)
+{
+ bdrv_register(&bdrv_vpc);
+}
+
+block_init(bdrv_vpc_init);