FDT_TYPE_LEN
char type[FDT_TYPE_LEN];
if (OF_getprop(node, "device_type", type, FDT_TYPE_LEN) < 0)
if (strncasecmp(type, typestr, FDT_TYPE_LEN) == 0)