virtio: Avoid strange behaviour on removal
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:50 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commit902400201de139cc1499dc4f794ed34d8a758ca8
treeff0fdaed2feec1376ef90ca04a9b02502cc7d656
parent811c81e88990555117e5d8cd5ef585f4b0d2400b
virtio: Avoid strange behaviour on removal

This device does a check on removal which is better handled in the actual
test. Move it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_sandbox.c
test/dm/virtio_device.c