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>
This commit is contained in:
Simon Glass 2023-01-17 10:47:49 -07:00 committed by Tom Rini
parent 59a6be9b11
commit 811c81e889

View file

@ -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;