diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:47:49 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:40 +0300 |
commit | 811c81e88990555117e5d8cd5ef585f4b0d2400b (patch) | |
tree | 3d05e8dae70f73c81d5d119c082ea16ed4868a1a /drivers | |
parent | 59a6be9b1147e43c68236cb52be7b56c586be03a (diff) | |
download | u-boot-811c81e88990555117e5d8cd5ef585f4b0d2400b.tar.xz |
virtio: Fix returning -ENODEV
This has a special meaning in driver model. There is clearly a device, so
it does not make sense to return this error code. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/virtio/virtio-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index 6d9b029390..a6bff630ca 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -163,7 +163,7 @@ int virtio_finalize_features(struct udevice *vdev) return ret; if (!(status & VIRTIO_CONFIG_S_FEATURES_OK)) { debug("(%s): device refuses features %x\n", vdev->name, status); - return -ENODEV; + return -EINVAL; } return 0; |