From: Eduardo Habkost Date: Wed, 3 May 2017 20:35:53 +0000 (-0300) Subject: sysbus-ahci: Remove user_creatable flag X-Git-Tag: qemu-xen-4.10.0-rc1~248^2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a081ab8f7b7b9eb72ead9201b5ece14d09fcc1c4;p=qemu-xen.git sysbus-ahci: Remove user_creatable flag The sysbus-ahci devices are supposed to be created and wired by code from other devices, like calxeda_init() and xlnx_zynqmp_realize(), and won't work with -device. Remove the user_creatable flag from the device class. Cc: John Snow Cc: qemu-block@nongnu.org Cc: Rob Herring Cc: Peter Maydell Cc: Alistair Francis Cc: "Edgar E. Iglesias" Cc: Marcel Apfelbaum Reviewed-by: Alistair Francis Acked-by: John Snow Acked-by: Marcel Apfelbaum Signed-off-by: Eduardo Habkost Message-Id: <20170503203604.31462-11-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost --- diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 7f10cda354..2ea1a282ef 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1721,11 +1721,6 @@ static void sysbus_ahci_class_init(ObjectClass *klass, void *data) dc->props = sysbus_ahci_properties; dc->reset = sysbus_ahci_reset; set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); - /* - * FIXME: Set only because we are not sure yet if this device - * will be outside the q35 sysbus whitelist. - */ - dc->user_creatable = true; } static const TypeInfo sysbus_ahci_info = {