diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-14 06:56:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 16:42:02 -0400 |
commit | 2c1f1ff0f0d9e0df8c9b6d3697ac250900091541 (patch) | |
tree | 66d570535abb71316d786f7e0b13523d2dccb906 /include/linux/device.h | |
parent | 8283b4919e00fb110ac338d6b9984ca92d5030fa (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.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 5c94ac3e7972..6d3a75773cd4 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -911,7 +911,7 @@ extern const char *device_get_devnode(struct device *dev, | |||
911 | umode_t *mode, kuid_t *uid, kgid_t *gid, | 911 | umode_t *mode, kuid_t *uid, kgid_t *gid, |
912 | const char **tmp); | 912 | const char **tmp); |
913 | extern void *dev_get_drvdata(const struct device *dev); | 913 | extern void *dev_get_drvdata(const struct device *dev); |
914 | extern int dev_set_drvdata(struct device *dev, void *data); | 914 | extern void dev_set_drvdata(struct device *dev, void *data); |
915 | 915 | ||
916 | static inline bool device_supports_offline(struct device *dev) | 916 | static inline bool device_supports_offline(struct device *dev) |
917 | { | 917 | { |