mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user