diff --git a/include/linux/soc/apple/sleep.h b/include/linux/soc/apple/sleep.h index 9b7d29e3ef8d9..9e79e41ca239c 100644 --- a/include/linux/soc/apple/sleep.h +++ b/include/linux/soc/apple/sleep.h @@ -16,17 +16,16 @@ struct device; struct resource; /* - * A T6050 machine whose device tree describes the firmware-driven sleep. What a - * driver does for that sleep follows the description, not a list of boards. - * With @prop: the description also has that property. + * A device tree that describes the T6050 firmware-driven sleep: an available + * "apple,t6050-sleep" node. What a driver does for that sleep follows the + * description, not a list of boards or SoCs. With @prop: the description also + * has that property. */ static inline bool apple_t6050_sleep_property(const char *prop) { struct device_node *np; bool ret; - if (!of_machine_is_compatible("apple,t6050")) - return false; np = of_find_compatible_node(NULL, NULL, "apple,t6050-sleep"); ret = np && of_device_is_available(np) && (!prop || of_property_read_bool(np, prop)); of_node_put(np);