diff options
| author | Ingo Molnar <mingo@kernel.org> | 2014-12-12 03:09:03 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-12-12 03:09:03 -0500 |
| commit | 3459f0d78ffe27a1b341c22eb158b622eaaea3fc (patch) | |
| tree | 715b0575eec541d0181876ad367ca5480cdcecf3 /include/linux/of.h | |
| parent | 9fc81d87420d0d3fd62d5e5529972c0ad9eab9cc (diff) | |
| parent | bee2782f30f66898be3f74ad02e4d1f87a969694 (diff) | |
Merge branch 'linus' into perf/urgent, to pick up the upstream merged bits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/of.h')
| -rw-r--r-- | include/linux/of.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 29f0adc5f3e4..c55b50018ac4 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -922,4 +922,15 @@ static inline int of_changeset_update_property(struct of_changeset *ocs, | |||
| 922 | /* CONFIG_OF_RESOLVE api */ | 922 | /* CONFIG_OF_RESOLVE api */ |
| 923 | extern int of_resolve_phandles(struct device_node *tree); | 923 | extern int of_resolve_phandles(struct device_node *tree); |
| 924 | 924 | ||
| 925 | /** | ||
| 926 | * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node | ||
| 927 | * @np: Pointer to the given device_node | ||
| 928 | * | ||
| 929 | * return true if present false otherwise | ||
| 930 | */ | ||
| 931 | static inline bool of_device_is_system_power_controller(const struct device_node *np) | ||
| 932 | { | ||
| 933 | return of_property_read_bool(np, "system-power-controller"); | ||
| 934 | } | ||
| 935 | |||
| 925 | #endif /* _LINUX_OF_H */ | 936 | #endif /* _LINUX_OF_H */ |
