Skip to content
Snippets Groups Projects
Commit 2a46cd97 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Lee Jones
Browse files

mfd: rk8xx: Add support for standard system-power-controller property


DT property rockchip,system-power-controller is now deprecated.

Signed-off-by: default avatarOndrej Jirman <megi@xff.cz>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20231019165732.3818789-4-megi@xff.cz


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent f0eb6244
No related branches found
No related tags found
No related merge requests found
...@@ -685,7 +685,8 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap ...@@ -685,7 +685,8 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap
if (ret) if (ret)
return dev_err_probe(dev, ret, "failed to add MFD devices\n"); return dev_err_probe(dev, ret, "failed to add MFD devices\n");
if (device_property_read_bool(dev, "rockchip,system-power-controller")) { if (device_property_read_bool(dev, "rockchip,system-power-controller") ||
device_property_read_bool(dev, "system-power-controller")) {
ret = devm_register_sys_off_handler(dev, ret = devm_register_sys_off_handler(dev,
SYS_OFF_MODE_POWER_OFF_PREPARE, SYS_OFF_PRIO_HIGH, SYS_OFF_MODE_POWER_OFF_PREPARE, SYS_OFF_PRIO_HIGH,
&rk808_power_off, rk808); &rk808_power_off, rk808);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment