summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorweiping zhang2017-12-21 13:39:50 +0100
committerMichael S. Tsirkin2018-02-01 15:26:45 +0100
commitf2b44cde7e1687ef7886831a3a30df653bda2481 (patch)
treee09f617e1bcc15cf3bc5a14ce1d692af83d28471 /.gitattributes
parentvhost: remove unused lock check flag in vhost_dev_cleanup() (diff)
downloadkernel-qcow2-linux-f2b44cde7e1687ef7886831a3a30df653bda2481.tar.gz
kernel-qcow2-linux-f2b44cde7e1687ef7886831a3a30df653bda2481.tar.xz
kernel-qcow2-linux-f2b44cde7e1687ef7886831a3a30df653bda2481.zip
virtio: split device_register into device_initialize and device_add
In order to make caller do a simple cleanup, we split device_register into device_initialize and device_add. device_initialize always succeeds, so the caller can always use put_device when register_virtio_device faild. Signed-off-by: weiping zhang <zhangweiping@didichuxing.com> Suggested-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions