diff options
| author | Michael S. Tsirkin <[email protected]> | 2021-10-13 10:55:44 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2022-01-14 23:50:52 +0000 |
| commit | d9679d0013a66849f23057978f92e76b255c50aa (patch) | |
| tree | 82edbfe8a2775e5cb7cbb5b560dd189067cc3db3 /drivers/gpio/gpio-virtio.c | |
| parent | Linux 5.16-rc8 (diff) | |
| download | kernel-d9679d0013a66849f23057978f92e76b255c50aa.tar.gz kernel-d9679d0013a66849f23057978f92e76b255c50aa.zip | |
virtio: wrap config->reset calls
This will enable cleanups down the road.
The idea is to disable cbs, then add "flush_queued_cbs" callback
as a parameter, this way drivers can flush any work
queued after callbacks have been disabled.
Signed-off-by: Michael S. Tsirkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-virtio.c')
| -rw-r--r-- | drivers/gpio/gpio-virtio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-virtio.c b/drivers/gpio/gpio-virtio.c index 9f4941bc5760..fcc5e8c08973 100644 --- a/drivers/gpio/gpio-virtio.c +++ b/drivers/gpio/gpio-virtio.c @@ -450,7 +450,7 @@ static void virtio_gpio_request_vq(struct virtqueue *vq) static void virtio_gpio_free_vqs(struct virtio_device *vdev) { - vdev->config->reset(vdev); + virtio_reset_device(vdev); vdev->config->del_vqs(vdev); } |
