From: Simon Glass Date: Tue, 17 Jan 2023 17:47:49 +0000 (-0700) Subject: virtio: Fix returning -ENODEV X-Git-Tag: baikal/mips/sdk5.8.2~5^2~79^2~31 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=8303a960864e839f77a05bcd71982f010694e1c1;p=uboot.git 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 --- 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;