Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/fdt/fdt_overlay.c
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static void * | static void * | ||||
fdt_get_fixup_location(void *fdtp, const char *fixup) | fdt_get_fixup_location(void *fdtp, const char *fixup) | ||||
{ | { | ||||
char *path, *prop, *offsetp, *endp; | char *path, *prop, *offsetp, *endp; | ||||
int prop_offset, o, proplen; | int prop_offset, o, proplen; | ||||
void *result; | void *result; | ||||
result = 0; | result = NULL; | ||||
path = strdup(fixup); | path = strdup(fixup); | ||||
prop = strchr(path, ':'); | prop = strchr(path, ':'); | ||||
if (prop == NULL) { | if (prop == NULL) { | ||||
printf("missing property part in \"%s\"\n", fixup); | printf("missing property part in \"%s\"\n", fixup); | ||||
result = NULL; | result = NULL; | ||||
goto out; | goto out; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |