static void unrealize(DeviceState *d, Error **errp)

{

    sPAPRDRConnector *drc = SPAPR_DR_CONNECTOR(d);

    Object *root_container;

    char name[256];

    Error *err = NULL;



    trace_spapr_drc_unrealize(spapr_drc_index(drc));

    root_container = container_get(object_get_root(), DRC_CONTAINER_PATH);

    snprintf(name, sizeof(name), "%x", spapr_drc_index(drc));

    object_property_del(root_container, name, &err);

    if (err) {

        error_report_err(err);

        object_unref(OBJECT(drc));

    }

}

static void unrealize(DeviceState *d, Error **errp)

{

    sPAPRDRConnector *drc = SPAPR_DR_CONNECTOR(d);

    Object *root_container;

    char name[256];

    Error *err = NULL;



    trace_spapr_drc_unrealize(spapr_drc_index(drc));

    root_container = container_get(object_get_root(), DRC_CONTAINER_PATH);

    snprintf(name, sizeof(name), "%x", spapr_drc_index(drc));

    object_property_del(root_container, name, &err);

    if (err) {

        error_report_err(err);

        object_unref(OBJECT(drc));

    }

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)

{

    sPAPRDRConnector *drc = SPAPR_DR_CONNECTOR(VAR_0);

    Object *root_container;

    char VAR_2[256];

    Error *err = NULL;



    trace_spapr_drc_unrealize(spapr_drc_index(drc));

    root_container = container_get(object_get_root(), DRC_CONTAINER_PATH);

    snprintf(VAR_2, sizeof(VAR_2), "%x", spapr_drc_index(drc));

    object_property_del(root_container, VAR_2, &err);

    if (err) {

        error_report_err(err);

        object_unref(OBJECT(drc));

    }

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{ sPAPRDRConnector *drc = SPAPR_DR_CONNECTOR(VAR_0); Object *root_container; char VAR_2[256]; Error *err = NULL; trace_spapr_drc_unrealize(spapr_drc_index(drc)); root_container = container_get(object_get_root(), DRC_CONTAINER_PATH); snprintf(VAR_2, sizeof(VAR_2), "%x", spapr_drc_index(drc)); object_property_del(root_container, VAR_2, &err); if (err) { error_report_err(err); object_unref(OBJECT(drc)); } }