qemu-e2k/hw
Markus Armbruster 837d37167d sysbus: Set cannot_instantiate_with_device_add_yet
device_add plugs devices into suitable bus.  For "real" buses, that
actually connects the device.  For sysbus, the connections need to be
made separately, and device_add can't do that.  The device would be
left unconnected, and could not possibly work.

Quite a few, but not all sysbus devices already set
cannot_instantiate_with_device_add_yet in their class init function.

Set it in their abstract base's class init function
sysbus_device_class_init(), and remove the now redundant assignments
from device class init functions.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-12-23 00:27:22 +01:00
..
9pfs
acpi
alpha sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
arm sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
audio sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
block
bt
char
core sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
cpu
cris
display sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
dma sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
gpio
i2c
i386 sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
ide
input
intc sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
isa sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
lm32
m68k
microblaze
mips
misc sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
moxie
net
nvram sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
openrisc
pci
pci-bridge
pci-host sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
pcmcia
ppc sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
s390x sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
scsi
sd sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
sh4
sparc
sparc64
ssi
timer sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
tpm
unicore32
usb
virtio
watchdog
xen
xtensa
Makefile.objs