power: reset: gpio-poweroff: force override pm_power_off for rockchip

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I4a8cdeaaf35d51ca39ee7b0336888219d3eca9e1
This commit is contained in:
Ziyuan Xu
2020-09-14 14:51:00 +08:00
committed by Tao Huang
parent d712e9b8d5
commit 3694473201

View File

@@ -52,6 +52,7 @@ static int gpio_poweroff_probe(struct platform_device *pdev)
bool input = false;
enum gpiod_flags flags;
#ifndef CONFIG_ARCH_ROCKCHIP
/* If a pm_power_off function has already been added, leave it alone */
if (pm_power_off != NULL) {
dev_err(&pdev->dev,
@@ -59,6 +60,7 @@ static int gpio_poweroff_probe(struct platform_device *pdev)
__func__);
return -EBUSY;
}
#endif
input = device_property_read_bool(&pdev->dev, "input");
if (input)