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> |
||
|---|---|---|
| .. | ||
| Makefile.objs | ||
| ads7846.c | ||
| blizzard.c | ||
| blizzard_template.h | ||
| cirrus_vga.c | ||
| cirrus_vga_rop.h | ||
| cirrus_vga_rop2.h | ||
| cirrus_vga_template.h | ||
| exynos4210_fimd.c | ||
| framebuffer.c | ||
| framebuffer.h | ||
| g364fb.c | ||
| jazz_led.c | ||
| milkymist-tmu2.c | ||
| milkymist-vgafb.c | ||
| milkymist-vgafb_template.h | ||
| omap_dss.c | ||
| omap_lcd_template.h | ||
| omap_lcdc.c | ||
| pl110.c | ||
| pl110_template.h | ||
| pxa2xx_lcd.c | ||
| pxa2xx_template.h | ||
| qxl-logger.c | ||
| qxl-render.c | ||
| qxl.c | ||
| qxl.h | ||
| sm501.c | ||
| sm501_template.h | ||
| ssd0303.c | ||
| ssd0323.c | ||
| tc6393xb.c | ||
| tc6393xb_template.h | ||
| tcx.c | ||
| vga-isa-mm.c | ||
| vga-isa.c | ||
| vga-pci.c | ||
| vga.c | ||
| vga.h | ||
| vga_int.h | ||
| vga_template.h | ||
| vmware_vga.c | ||
| xenfb.c | ||