diff options
-rw-r--r-- | include/linux/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index c0bd23048be0..3f33f17f556c 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -494,6 +494,11 @@ static inline struct device *root_device_register(const char *name) | |||
494 | } | 494 | } |
495 | extern void root_device_unregister(struct device *root); | 495 | extern void root_device_unregister(struct device *root); |
496 | 496 | ||
497 | static inline void *dev_get_platdata(const struct device *dev) | ||
498 | { | ||
499 | return dev->platform_data; | ||
500 | } | ||
501 | |||
497 | /* | 502 | /* |
498 | * Manual binding of a device to driver. See drivers/base/bus.c | 503 | * Manual binding of a device to driver. See drivers/base/bus.c |
499 | * for information on use. | 504 | * for information on use. |