mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "i2c: virtio: Register i2c adapter after virtio queue ready"
This commit is contained in:
commit
455a57bb7c
1 changed files with 4 additions and 3 deletions
|
|
@ -292,13 +292,14 @@ static int virti2c_probe(struct virtio_device *vdev)
|
|||
if (err)
|
||||
goto err_init_vq;
|
||||
|
||||
virtio_device_ready(vdev);
|
||||
|
||||
virtqueue_enable_cb(vi2c->vq);
|
||||
|
||||
err = virti2c_init_hw(vdev, vi2c);
|
||||
if (err)
|
||||
goto err_init_hw;
|
||||
|
||||
virtio_device_ready(vdev);
|
||||
|
||||
virtqueue_enable_cb(vi2c->vq);
|
||||
return 0;
|
||||
|
||||
err_init_hw:
|
||||
|
|
|
|||
Loading…
Reference in a new issue