summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env.c')
-rw-r--r--common/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/env.c b/common/env.c
index 04ca275d44..edaf388956 100644
--- a/common/env.c
+++ b/common/env.c
@@ -142,7 +142,7 @@ const char *getenv (const char *name)
char *par = strchr(devstr, '.');
struct device_d *dev;
*par = 0;
- dev = get_device_by_id(devstr);
+ dev = get_device_by_name(devstr);
if (dev) {
par++;
ret = dev_get_param(dev, par);
@@ -213,7 +213,7 @@ int setenv(const char *_name, const char *value)
struct device_d *dev;
*par++ = 0;
- dev = get_device_by_id(name);
+ dev = get_device_by_name(name);
if (dev)
ret = dev_set_param(dev, par, value);
else