diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-06-18 01:42:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 16:09:02 -0700 |
commit | 2a0134554e12f530c6eccb1dab3f0f8954f855c9 (patch) | |
tree | 96c94e51d3d26d8f8c9fbaf52d6fe1103cc1323d /drivers/base/devres.c | |
parent | ab71c6f0767bcbc618f3db51f668d5b951c00b60 (diff) | |
download | linux-3.10-2a0134554e12f530c6eccb1dab3f0f8954f855c9.tar.gz linux-3.10-2a0134554e12f530c6eccb1dab3f0f8954f855c9.tar.bz2 linux-3.10-2a0134554e12f530c6eccb1dab3f0f8954f855c9.zip |
Driver core: fix devres_release_all() return value
Every file should include the headers containing the prototypes for
it's global functions.
Since the GNU C compiler is now able to detect that the function
prototype of devres_release_all() in the header and the actual function
disagree regarding the return value, this patch also fixes this bug.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/devres.c')
-rw-r--r-- | drivers/base/devres.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/devres.c b/drivers/base/devres.c index e1c0730a3b9..e8beb8e5b62 100644 --- a/drivers/base/devres.c +++ b/drivers/base/devres.c @@ -10,6 +10,8 @@ #include <linux/device.h> #include <linux/module.h> +#include "base.h" + struct devres_node { struct list_head entry; dr_release_t release; |