mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
8283b4919e
commit
2c1f1ff0f0
2 changed files with 2 additions and 3 deletions
|
|
@ -600,9 +600,8 @@ void *dev_get_drvdata(const struct device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL(dev_get_drvdata);
|
||||
|
||||
int dev_set_drvdata(struct device *dev, void *data)
|
||||
void dev_set_drvdata(struct device *dev, void *data)
|
||||
{
|
||||
dev->driver_data = data;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(dev_set_drvdata);
|
||||
|
|
|
|||
Loading…
Reference in a new issue