anchao commented on code in PR #11482:
URL: https://github.com/apache/nuttx/pull/11482#discussion_r1442393602


##########
drivers/virtio/virtio-mmio.c:
##########
@@ -842,7 +842,12 @@ int virtio_register_mmio_device(FAR void *regs, int irq)
     }
 
   ret = virtio_mmio_init_device(vmdev, regs, irq);
-  if (ret < 0)
+  if (ret == -ENODEV)

Review Comment:
   The virtio device should be parsed from the device tree, right? Why need 
special handling here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to