#include <xsm/xsm.h>
#include <asm/setup.h>
-static bool_t __init device_tree_node_matches(const void *fdt, int node,
- const char *match)
+static bool __init device_tree_node_matches(const void *fdt, int node,
+ const char *match)
{
const char *name;
size_t match_len;
&& (name[match_len] == '@' || name[match_len] == '\0');
}
-static bool_t __init device_tree_node_compatible(const void *fdt, int node,
- const char *match)
+static bool __init device_tree_node_compatible(const void *fdt, int node,
+ const char *match)
{
int len, l;
int mlen;
prop = fdt_getprop(fdt, node, "compatible", &len);
if ( prop == NULL )
- return 0;
+ return false;
while ( len > 0 ) {
if ( !dt_compat_cmp(prop, match) )
- return 1;
+ return true;
l = strlen(prop) + 1;
prop += l;
len -= l;
}
- return 0;
+ return false;
}
static void __init device_tree_get_reg(const __be32 **cell, u32 address_cells,