aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorweiping zhang <[email protected]>2017-12-21 20:39:50 +0800
committerMichael S. Tsirkin <[email protected]>2018-02-01 16:26:45 +0200
commitf2b44cde7e1687ef7886831a3a30df653bda2481 (patch)
treee09f617e1bcc15cf3bc5a14ce1d692af83d28471 /drivers/fpga/xilinx-spi.c
parentf6f93f75afb65997f4a84aaaab59dd06a4a06c80 (diff)
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 <[email protected]> Suggested-by: Cornelia Huck <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Cornelia Huck <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions