Commit 5b40a7da authored by Rusty Russell's avatar Rusty Russell

virtio: don't set VIRTIO_CONFIG_S_DRIVER_OK twice.

I noticed this with the console device.  It's not *wrong*, just a bit
weird.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent e68c48f9
...@@ -236,7 +236,10 @@ static int virtio_dev_probe(struct device *_d) ...@@ -236,7 +236,10 @@ static int virtio_dev_probe(struct device *_d)
if (err) if (err)
goto err; goto err;
add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); /* If probe didn't do it, mark device DRIVER_OK ourselves. */
if (!(dev->config->get_status(dev) & VIRTIO_CONFIG_S_DRIVER_OK))
virtio_device_ready(dev);
if (drv->scan) if (drv->scan)
drv->scan(dev); drv->scan(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment