diff options
author | Andrew Morton <akpm@osdl.org> | 2006-08-15 01:43:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:39 -0400 |
commit | f86db396ff455ed586751d21816a1ebd431264e5 (patch) | |
tree | dfbeb27206b673ed46482b18ee6d779786be7ed1 /include | |
parent | 370226449ced358e52d198081120826ef52c166b (diff) |
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 'include')
-rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index ad4db72f5733..b3da9a870cfc 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -62,7 +62,7 @@ struct bus_type { | |||
62 | extern int __must_check bus_register(struct bus_type * bus); | 62 | extern int __must_check bus_register(struct bus_type * bus); |
63 | extern void bus_unregister(struct bus_type * bus); | 63 | extern void bus_unregister(struct bus_type * bus); |
64 | 64 | ||
65 | extern void bus_rescan_devices(struct bus_type * bus); | 65 | extern int __must_check bus_rescan_devices(struct bus_type * bus); |
66 | 66 | ||
67 | /* iterator helpers for buses */ | 67 | /* iterator helpers for buses */ |
68 | 68 | ||
@@ -397,11 +397,11 @@ extern int device_rename(struct device *dev, char *new_name); | |||
397 | * Manual binding of a device to driver. See drivers/base/bus.c | 397 | * Manual binding of a device to driver. See drivers/base/bus.c |
398 | * for information on use. | 398 | * for information on use. |
399 | */ | 399 | */ |
400 | extern void device_bind_driver(struct device * dev); | 400 | extern int __must_check device_bind_driver(struct device *dev); |
401 | extern void device_release_driver(struct device * dev); | 401 | extern void device_release_driver(struct device * dev); |
402 | extern int __must_check device_attach(struct device * dev); | 402 | extern int __must_check device_attach(struct device * dev); |
403 | extern void driver_attach(struct device_driver * drv); | 403 | extern int __must_check driver_attach(struct device_driver *drv); |
404 | extern void device_reprobe(struct device *dev); | 404 | extern int __must_check device_reprobe(struct device *dev); |
405 | 405 | ||
406 | /* | 406 | /* |
407 | * Easy functions for dynamically creating devices on the fly | 407 | * Easy functions for dynamically creating devices on the fly |