[PATCH 34/42] lib/driver.c: sparse fixes
Sascha Hauer
s.hauer at pengutronix.de
Tue Oct 19 08:55:22 EDT 2010
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
lib/driver.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/driver.c b/lib/driver.c
index 66d8fee..edde1dc 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]);
--
1.7.2.3
More information about the barebox
mailing list