aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-14 12:56:34 +0200
committerMoyster <oysterized@gmail.com>2019-05-05 12:34:01 +0200
commit1e2fa9feab65fc8d3a40eb9aa56cbc4e008a064c (patch)
treebf359b60725bec6b69ddbfaa7fc4e76cc57b2134 /include/linux
parentb96bbed5f2b9793bd2615fc3181915f9438ef837 (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/linux')
-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