On Tue,  4 Apr 2017 17:24:29 -0300
Eduardo Habkost <[email protected]> wrote:

> TYPE_S390_PCI_HOST_BRIDGE is a subclass of TYPE_PCI_HOST_BRIDGE,
> which is a subclass of TYPE_SYS_BUS_DEVICE. TYPE_SYS_BUS_DEVICE
> already sets user_creatable=false, so we don't require an
> explicit user_creatable=false assignment in
> s390_pcihost_class_init().
> 
> Cc: Alexander Graf <[email protected]>
> Cc: Christian Borntraeger <[email protected]>
> Cc: Cornelia Huck <[email protected]>
> Cc: Frank Blaschka <[email protected]>
> Cc: Laszlo Ersek <[email protected]>
> Cc: Marcel Apfelbaum <[email protected]>
> Cc: Markus Armbruster <[email protected]>
> Cc: Peter Maydell <[email protected]>
> Cc: Pierre Morel <[email protected]>
> Cc: Richard Henderson <[email protected]>
> Cc: Thomas Huth <[email protected]>
> Cc: Yi Min Zhao <[email protected]>
> Signed-off-by: Eduardo Habkost <[email protected]>
> ---
> Changes series v1 -> v2:
> * Previous patch was:
>   "s390: Add FIXME for unexplained user_creatable=false line",
>   but now we know we can remove the explicit user_creatable=false
>   assignment
> ---
>  hw/s390x/s390-pci-bus.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
> index 1ec30c45ce..973893df07 100644
> --- a/hw/s390x/s390-pci-bus.c
> +++ b/hw/s390x/s390-pci-bus.c
> @@ -867,7 +867,6 @@ static void s390_pcihost_class_init(ObjectClass *klass, 
> void *data)
>      DeviceClass *dc = DEVICE_CLASS(klass);
>      HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass);
>  
> -    dc->user_creatable = false;
>      dc->reset = s390_pcihost_reset;
>      k->init = s390_pcihost_init;
>      hc->plug = s390_pcihost_hot_plug;

Acked-by: Cornelia Huck <[email protected]>


Reply via email to