summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev_d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dev_d.c b/dev_d.c
index 050df7bbec..eaf9b1dc12 100644
--- a/dev_d.c
+++ b/dev_d.c
@@ -96,9 +96,8 @@ void dev_d_send(struct udevice *dev, const char *subsystem, const char *devpath)
strfieldcat(env_devname, dev->name);
} else if (dev->type == 'n') {
strfieldcpy(env_devname, dev->name);
+ setenv("DEVPATH", devpath, 1);
}
-
- setenv("DEVPATH", devpath, 1);
setenv("DEVNAME", env_devname, 1);
dbg("DEVNAME='%s'", env_devname);