diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-24 15:36:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-07-24 15:36:56 -0400 |
| commit | b9f12a5d97f652c77ef6803dccd0d40d1290f5be (patch) | |
| tree | 8f58c8620ffef0d350a5ec022feda492a96b179a /include/linux/of_platform.h | |
| parent | 9d8dc3e529a19e427fd379118acd132520935c5d (diff) | |
| parent | 9a3c4145af32125c5ee39c0272662b47307a8323 (diff) | |
Merge tag 'v3.16-rc6' into next
Merge with mainline to bring in changes to MFD to allow merging
ipaq-micro-ts driver.
Diffstat (limited to 'include/linux/of_platform.h')
| -rw-r--r-- | include/linux/of_platform.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index 05cb4a928252..d96e1badbee0 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | * Note: Using an auxdata lookup table should be considered a last resort when | 37 | * Note: Using an auxdata lookup table should be considered a last resort when |
| 38 | * converting a platform to use the DT. Normally the automatically generated | 38 | * converting a platform to use the DT. Normally the automatically generated |
| 39 | * device name will not matter, and drivers should obtain data from the device | 39 | * device name will not matter, and drivers should obtain data from the device |
| 40 | * node instead of from an anonymouns platform_data pointer. | 40 | * node instead of from an anonymous platform_data pointer. |
| 41 | */ | 41 | */ |
| 42 | struct of_dev_auxdata { | 42 | struct of_dev_auxdata { |
| 43 | char *compatible; | 43 | char *compatible; |
| @@ -72,6 +72,7 @@ extern int of_platform_populate(struct device_node *root, | |||
| 72 | const struct of_device_id *matches, | 72 | const struct of_device_id *matches, |
| 73 | const struct of_dev_auxdata *lookup, | 73 | const struct of_dev_auxdata *lookup, |
| 74 | struct device *parent); | 74 | struct device *parent); |
| 75 | extern int of_platform_depopulate(struct device *parent); | ||
| 75 | #else | 76 | #else |
| 76 | static inline int of_platform_populate(struct device_node *root, | 77 | static inline int of_platform_populate(struct device_node *root, |
| 77 | const struct of_device_id *matches, | 78 | const struct of_device_id *matches, |
| @@ -80,6 +81,10 @@ static inline int of_platform_populate(struct device_node *root, | |||
| 80 | { | 81 | { |
| 81 | return -ENODEV; | 82 | return -ENODEV; |
| 82 | } | 83 | } |
| 84 | static inline int of_platform_depopulate(struct device *parent) | ||
| 85 | { | ||
| 86 | return -ENODEV; | ||
| 87 | } | ||
| 83 | #endif | 88 | #endif |
| 84 | 89 | ||
| 85 | #endif /* _LINUX_OF_PLATFORM_H */ | 90 | #endif /* _LINUX_OF_PLATFORM_H */ |
