qemu-patch-raspberry4/hw
Stefan Hajnoczi 02a5c4c974 qdev: Drop misleading qdev_free() function
The qdev_free() function name is misleading since all the function does
is unlink the device from its parent.  The device is not necessarily
freed.

The device will be freed when its QObject refcount reaches zero.  It is
usual for the parent (bus) to hold the final reference but there are
cases where something else holds a reference so "free" is a misleading
name.

Call object_unparent(obj) directly instead of having a qdev wrapper
function.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-11-05 18:06:38 +01:00
..
9pfs hw/9pfs: Fix errno value for xattr functions 2013-10-05 13:05:28 +04:00
acpi qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
alpha hw/alpha: Fix compiler warning (integer constant is too large) 2013-10-02 22:55:28 +04:00
arm armv7m: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
audio pci, pc, acpi fixes, enhancements 2013-10-31 16:58:32 +01:00
block shix: Don't require firmware presence for qtest 2013-11-05 17:47:29 +01:00
bt Preparation for usb-bt-dongle conditional build 2013-09-10 11:14:41 +02:00
char milkymist-uart: Use Device::realize instead of SysBusDevice::init 2013-11-05 17:47:29 +01:00
core qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
cpu arm11mpcore: Split off RealView MPCore 2013-11-05 17:47:30 +01:00
cris axis_dev88: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
display pci, pc, acpi fixes, enhancements 2013-10-31 16:58:32 +01:00
dma qom: Pass available size to object_initialize() 2013-08-30 21:15:44 +02:00
gpio gpio/zaurus: QOM cast cleanup 2013-07-29 21:06:57 +02:00
i2c exynos4210_i2c: QOM cast cleanup 2013-07-29 21:07:02 +02:00
i386 pc: disable acpi info for isapc and old pc machine 2013-11-04 15:38:44 +02:00
ide Block patches for 1.7.0-rc0 (v2) 2013-10-31 17:02:26 +01:00
input aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
intc realview_gic: Prepare for QOM embedding 2013-11-05 17:47:30 +01:00
isa ich9: APIs for pc guest info 2013-10-14 17:48:52 +03:00
lm32 milkymist: Suppress -kernel/-bios/-drive error for qtest 2013-11-05 17:47:29 +01:00
m68k an5206: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
microblaze hw/microblaze: Add support for loading initrd images 2013-10-24 22:56:48 +02:00
mips mips_mipssim: Silence BIOS loading warning for qtest 2013-11-05 17:47:28 +01:00
misc arm11mpcore: Split off SCU device 2013-11-05 17:47:30 +01:00
moxie memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
net pci, pc, acpi fixes, enhancements 2013-10-31 16:58:32 +01:00
nvram fw_cfg: interface to trigger callback on read 2013-10-14 17:48:51 +03:00
openrisc pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
pci qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
pci-bridge hw/pci-bridge: set PCI_INTERRUPT_PIN register before shpc init 2013-10-14 17:11:45 +03:00
pci-host pci, pc, acpi fixes, enhancements 2013-10-31 16:58:32 +01:00
ppc Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-10-31 17:01:43 +01:00
s390x qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
scsi qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
sd sd: Avoid access to NULL BlockDriverState 2013-10-17 10:15:18 +02:00
sh4 shix: Don't require firmware presence for qtest 2013-11-05 17:47:29 +01:00
sparc leon3: Don't enforce use of -bios with qtest 2013-11-05 17:47:29 +01:00
sparc64 pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
ssi xilinx_spi: QOM cast cleanup 2013-07-29 21:07:01 +02:00
timer a9mpcore: Embed ARMMPTimerState 2013-11-05 17:47:29 +01:00
tpm aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
unicore32 puv3: Turn puv3_load_kernel() into a no-op for qtest without -kernel 2013-11-05 17:47:28 +01:00
usb qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
virtio qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
watchdog aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
xen qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
xtensa pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00