Commit
750f463a, "dt: add of_alias_scan and of_alias_get_id" breaks
platforms that don't use CONFIG_OF_FLATTREE, like SPARC and OLPC. Fix
it by only building it on platforms using the flat tree.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
}
#endif /* defined(CONFIG_OF_DYNAMIC) */
+#ifdef CONFIG_OF_FLATTREE
static void of_alias_add(struct alias_prop *ap, struct device_node *np,
int id, const char *stem, int stem_len)
{
return id;
}
EXPORT_SYMBOL_GPL(of_alias_get_id);
+#endif /* CONFIG_OF_FLATTREE */