virtio_mmio: add cleanup for virtio_mmio_remove
authorweiping zhang <zhangweiping@didichuxing.com>
Wed, 6 Dec 2017 13:59:32 +0000 (21:59 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Dec 2017 16:30:50 +0000 (18:30 +0200)
commit25f32223bce5c580e0392a176319a587d7a17e95
treeb32d101076550c42ecf00a102a421bd107bdb900
parent7eb781b1bbb7136fe78fb8c28c1c223c61fa32b5
virtio_mmio: add cleanup for virtio_mmio_remove

cleanup all resource allocated by virtio_mmio_probe.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
drivers/virtio/virtio_mmio.c