diff options
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 27b3ba1e9e59..257677256612 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -867,14 +867,14 @@ static inline int of_changeset_update_property(struct of_changeset *ocs, | |||
867 | extern int of_resolve_phandles(struct device_node *tree); | 867 | extern int of_resolve_phandles(struct device_node *tree); |
868 | 868 | ||
869 | /** | 869 | /** |
870 | * of_system_has_poweroff_source - Tells if poweroff-source is found for device_node | 870 | * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node |
871 | * @np: Pointer to the given device_node | 871 | * @np: Pointer to the given device_node |
872 | * | 872 | * |
873 | * return true if present false otherwise | 873 | * return true if present false otherwise |
874 | */ | 874 | */ |
875 | static inline bool of_system_has_poweroff_source(const struct device_node *np) | 875 | static inline bool of_device_is_system_power_controller(const struct device_node *np) |
876 | { | 876 | { |
877 | return of_property_read_bool(np, "poweroff-source"); | 877 | return of_property_read_bool(np, "system-power-controller"); |
878 | } | 878 | } |
879 | 879 | ||
880 | #endif /* _LINUX_OF_H */ | 880 | #endif /* _LINUX_OF_H */ |