From 7a87b802364bb1b2f5a62304ee29cdc023f88b96 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Fri, 17 Jul 2009 15:06:08 +0100 Subject: [PATCH] --- yaml --- r: 162579 b: refs/heads/master c: a5b8b1ada6dd76503884f5492b995cd29eefae0f h: refs/heads/master i: 162577: 276b4da2ac17a49a4d949dd2ab7a16391823b3bf 162575: 698eaa401b5cab780e5e0c393c0bb75d8c7d8862 v: v3 --- [refs] | 2 +- trunk/include/linux/device.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6e7492ae3974..c1d64a69b627 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b4028437876866aba4747a655ede00f892089e14 +refs/heads/master: a5b8b1ada6dd76503884f5492b995cd29eefae0f diff --git a/trunk/include/linux/device.h b/trunk/include/linux/device.h index c0bd23048be0..3f33f17f556c 100644 --- a/trunk/include/linux/device.h +++ b/trunk/include/linux/device.h @@ -494,6 +494,11 @@ static inline struct device *root_device_register(const char *name) } extern void root_device_unregister(struct device *root); +static inline void *dev_get_platdata(const struct device *dev) +{ + return dev->platform_data; +} + /* * Manual binding of a device to driver. See drivers/base/bus.c * for information on use.