mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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:
parent
59a6be9b11
commit
811c81e889
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue