driver core: Inline dev_set/get_drvdata

dev_set_drvdata and dev_get_drvdata are now simple enough again that
we can inline them as they used to be before commit b40284378.

Signed-off-by: Jean Delvare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Jean Delvare 2014-04-14 12:58:53 +02:00 • committed by Greg Kroah-Hartman
commit a996d010b6
2 changed files with 10 additions and 18 deletions

View file

@ -587,19 +587,3 @@ void driver_detach(struct device_driver *drv)
put_device(dev);
}
}
/*
* These exports can't be _GPL due to .h files using this within them, and it
* might break something that was previously working...
*/
void *dev_get_drvdata(const struct device *dev)
{
return dev->driver_data;
}
EXPORT_SYMBOL(dev_get_drvdata);
void dev_set_drvdata(struct device *dev, void *data)
{
dev->driver_data = data;
}
EXPORT_SYMBOL(dev_set_drvdata);