mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
virtio-blk: rename virtio_device_info to virtio_blk_info
The old one is confusing with @virtio_device_info in virtio.c, so make it more appropriate. Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Message-id: 1470214147-32560-1-git-send-email-xiecl.fnst@cn.fujitsu.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
0ed93d84ed
commit
b5c7ceaf4b
@ -992,7 +992,7 @@ static void virtio_blk_class_init(ObjectClass *klass, void *data)
|
||||
vdc->load = virtio_blk_load_device;
|
||||
}
|
||||
|
||||
static const TypeInfo virtio_device_info = {
|
||||
static const TypeInfo virtio_blk_info = {
|
||||
.name = TYPE_VIRTIO_BLK,
|
||||
.parent = TYPE_VIRTIO_DEVICE,
|
||||
.instance_size = sizeof(VirtIOBlock),
|
||||
@ -1002,7 +1002,7 @@ static const TypeInfo virtio_device_info = {
|
||||
|
||||
static void virtio_register_types(void)
|
||||
{
|
||||
type_register_static(&virtio_device_info);
|
||||
type_register_static(&virtio_blk_info);
|
||||
}
|
||||
|
||||
type_init(virtio_register_types)
|
||||
|
Loading…
Reference in New Issue
Block a user