diff options
author | Andrew Morton <akpm@osdl.org> | 2006-08-14 22:43:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-25 21:08:39 -0700 |
commit | f86db396ff455ed586751d21816a1ebd431264e5 (patch) | |
tree | dfbeb27206b673ed46482b18ee6d779786be7ed1 /drivers/base/base.h | |
parent | 370226449ced358e52d198081120826ef52c166b (diff) | |
download | linux-3.10-f86db396ff455ed586751d21816a1ebd431264e5.tar.gz linux-3.10-f86db396ff455ed586751d21816a1ebd431264e5.tar.bz2 linux-3.10-f86db396ff455ed586751d21816a1ebd431264e5.zip |
drivers/base: check errors
Add lots of return-value checking.
<pcornelia.huck@de.ibm.com>: fix bus_rescan_devices()]
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index c3b8dc98b8a..d26644a5953 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -16,7 +16,7 @@ extern int cpu_dev_init(void); extern int attribute_container_init(void); extern int bus_add_device(struct device * dev); -extern void bus_attach_device(struct device * dev); +extern int bus_attach_device(struct device * dev); extern void bus_remove_device(struct device * dev); extern struct bus_type *get_bus(struct bus_type * bus); extern void put_bus(struct bus_type * bus); |