diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-15 09:40:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-21 22:21:25 +0200 |
commit | c89ac15f80f404d36fb19884d18062516b824ae7 (patch) | |
tree | b4071c4e36ec759ff360db8f8c997a99cc162db1 /lib | |
parent | 27e3cad82d3cb22a2802df987a8efeec8b5ec224 (diff) | |
download | barebox-c89ac15f80f404d36fb19884d18062516b824ae7.tar.gz barebox-c89ac15f80f404d36fb19884d18062516b824ae7.tar.xz |
lib/driver.c: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/driver.c b/lib/driver.c index 66d8fee38f..edde1dc2ff 100644 --- a/lib/driver.c +++ b/lib/driver.c @@ -54,7 +54,7 @@ struct device_d *get_device_by_name(const char *name) return NULL; } -struct device_d *get_device_by_name_id(const char *name, int id) +static struct device_d *get_device_by_name_id(const char *name, int id) { struct device_d *dev; @@ -315,7 +315,7 @@ static int do_devinfo(struct command *cmdtp, int argc, char *argv[]) for_each_driver(drv) printf("%10s\n",drv->name); } else { - struct device_d *dev = get_device_by_name(argv[1]); + dev = get_device_by_name(argv[1]); if (!dev) { printf("no such device: %s\n",argv[1]); |