aboutsummaryrefslogtreecommitdiff
path: root/drivers/virtio/virtio_blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/virtio/virtio_blk.c')
-rw-r--r--drivers/virtio/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_blk.c b/drivers/virtio/virtio_blk.c
index 9710b79117c..30cfc56725c 100644
--- a/drivers/virtio/virtio_blk.c
+++ b/drivers/virtio/virtio_blk.c
@@ -75,7 +75,7 @@ static int virtio_blk_bind(struct udevice *dev)
struct blk_desc *desc = dev_get_uclass_plat(dev);
int devnum;
- desc->if_type = UCLASS_VIRTIO;
+ desc->uclass_id = UCLASS_VIRTIO;
/*
* Initialize the devnum to -ENODEV. This is to make sure that
* blk_next_free_devnum() works as expected, since the default