On Thu, 21 Dec 2017 20:39:50 +0800 weiping zhang <zhangweiping@xxxxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxxx> > Suggested-by: Cornelia Huck <cohuck@xxxxxxxxxx> > --- > drivers/virtio/virtio.c | 18 +++++++++++++++--- > 1 file changed, 15 insertions(+), 3 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx> _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization