Skip to content

Commit

Permalink
linux: latest: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Nov 13, 2023
1 parent fda6710 commit 3a82402
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ Note that running in an active-low configuration (DT parameter
allow a reboot without switching off, so an external inversion
of the trigger signal may be preferable.
---
drivers/power/reset/gpio-poweroff.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
drivers/power/reset/gpio-poweroff.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c
index 1c5af2fef142..3e670131f2a8 100644
--- a/drivers/power/reset/gpio-poweroff.c
+++ b/drivers/power/reset/gpio-poweroff.c
@@ -18,6 +18,7 @@ #include <linux/property.h>
#include <linux/gpio/consumer.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
+#include <linux/of.h>

#define DEFAULT_TIMEOUT_MS 3000
/*
@@ -50,9 +50,11 @@ static int gpio_poweroff_probe(struct platform_device *pdev)
{
bool input = false;
Expand Down

0 comments on commit 3a82402

Please sign in to comment.