Thread (2 messages) 2 messages, 2 authors, 2017-12-22

Re: [PATCH v5 1/4] virtio: split device_register into device_initialize and device_add

flat view

From: Cornelia Huck <cohuck@redhat.com>
Date: 2017-12-22 13:39:12

On Thu, 21 Dec 2017 20:39:50 +0800
weiping zhang [off-list ref] 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 <redacted>
Suggested-by: Cornelia Huck <cohuck@redhat.com>
---
 drivers/virtio/virtio.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help