When generating the DT based upon the active package and current instance, we cannot change either when setting the alias. Instead look up the phandle and then set the properties directly.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- drivers/lsi.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/lsi.c b/drivers/lsi.c index 1f3f038..37e4b9d 100644 --- a/drivers/lsi.c +++ b/drivers/lsi.c @@ -624,13 +624,12 @@ NODE_METHODS(ob_lsi) = { static void add_alias(const char *device, const char *alias) { + phandle_t aliases; + DPRINTF("add_alias dev "%s" = alias "%s"\n", device, alias); - push_str("/aliases"); - fword("find-device"); - push_str(device); - fword("encode-string"); - push_str(alias); - fword("property"); + + aliases = find_dev("/aliases"); + set_property(aliases, alias, device, strlen(device) + 1); }
int