aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-14 12:56:34 +0200
committerMoyster <oysterized@gmail.com>2019-05-03 17:55:22 +0200
commit9299a04997454c0348918642006922cfb7c014ea (patch)
tree2333dbec12b9f7b07ad57018b654bd050296bc72 /include
parentcb126949f8241f48d20c0ab74afaebdbb50b7891 (diff)
driver core: dev_set_drvdata returns void
dev_set_drvdata can no longer fail, so it could return void. All callers have hopefully been updated to no longer check for the return value. [apq8084: fix callers still expecting a return value] Change-Id: I5e8995b0783727139901dcc7a810e8d0d39a0eed Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 0f90d5f47..4acc80fda 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -860,7 +860,7 @@ extern const char *device_get_devnode(struct device *dev,
umode_t *mode, kuid_t *uid, kgid_t *gid,
const char **tmp);
extern void *dev_get_drvdata(const struct device *dev);
-extern int dev_set_drvdata(struct device *dev, void *data);
+extern void dev_set_drvdata(struct device *dev, void *data);
/*
* Root device objects for grouping under /sys/devices