Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/gic_v3_acpi.c
Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | gic_v3_acpi_attach(device_t dev) | ||||
* a bus in that case. Failure here will not affect the main GIC | * a bus in that case. Failure here will not affect the main GIC | ||||
* functionality. | * functionality. | ||||
*/ | */ | ||||
gic_v3_acpi_bus_attach(dev); | gic_v3_acpi_bus_attach(dev); | ||||
if (device_get_children(dev, &sc->gic_children, &sc->gic_nchildren) !=0) | if (device_get_children(dev, &sc->gic_children, &sc->gic_nchildren) !=0) | ||||
sc->gic_nchildren = 0; | sc->gic_nchildren = 0; | ||||
gic_v3_alloc_maint_res(dev); | |||||
return (0); | return (0); | ||||
error: | error: | ||||
if (bootverbose) { | if (bootverbose) { | ||||
device_printf(dev, | device_printf(dev, | ||||
"Failed to attach. Error %d\n", err); | "Failed to attach. Error %d\n", err); | ||||
} | } | ||||
/* Failure so free resources */ | /* Failure so free resources */ | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |