summaryrefslogtreecommitdiffstats
path: root/drivers/of/barebox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/barebox.c')
-rw-r--r--drivers/of/barebox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/barebox.c b/drivers/of/barebox.c
index 125feef2cc..64f483326d 100644
--- a/drivers/of/barebox.c
+++ b/drivers/of/barebox.c
@@ -61,7 +61,7 @@ static int environment_check_mount(struct device_d *dev, char **devpath)
/* Set env to be in a file on the now mounted device */
dev_dbg(dev, "Loading default env from %s on device %s\n",
filepath, *devpath);
- *devpath = asprintf("%s/%s", ENV_MNT_DIR, filepath);
+ *devpath = basprintf("%s/%s", ENV_MNT_DIR, filepath);
return 0;
}