mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
fdt_virtio_mmio: bug fix, should not return when ret == -ENODEV
-ENODEV is a normal error code for function virtio_register_mmio_device() because the virtio device is not must be in the mmio register address Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
e83c7aba1c
commit
e8467a9bd5
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/fdt.h>
|
||||
|
@ -76,7 +77,7 @@ int fdt_virtio_mmio_devices_register(FAR const void *fdt, int irqbase)
|
|||
}
|
||||
|
||||
ret = virtio_register_mmio_device((FAR void *)addr, irqnum);
|
||||
if (ret < 0)
|
||||
if (ret < 0 && ret != -ENODEV)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue