Commit 2a013455 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman

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: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ab71c6f0
...@@ -44,6 +44,6 @@ struct class_device_attribute *to_class_dev_attr(struct attribute *_attr) ...@@ -44,6 +44,6 @@ struct class_device_attribute *to_class_dev_attr(struct attribute *_attr)
extern char *make_class_name(const char *name, struct kobject *kobj); extern char *make_class_name(const char *name, struct kobject *kobj);
extern void devres_release_all(struct device *dev); extern int devres_release_all(struct device *dev);
extern struct kset devices_subsys; extern struct kset devices_subsys;
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include "base.h"
struct devres_node { struct devres_node {
struct list_head entry; struct list_head entry;
dr_release_t release; dr_release_t release;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment