mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: Rusty Russell <[email protected]>
This commit is contained in:
parent
e68c48f975
commit
5b40a7daf5
1 changed files with 4 additions and 1 deletions
|
|
@ -236,7 +236,10 @@ static int virtio_dev_probe(struct device *_d)
|
|||
if (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)
|
||||
drv->scan(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue