Amlogic: fix power off on the Powkiddy RGB10 Max 3 Pro
This commit is contained in:
parent
d664dc7376
commit
6452f720fb
1 changed files with 37 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
From db7441026e9bab24e537c74692020270ca61963e Mon Sep 17 00:00:00 2001
|
||||
From: salty cat <spycat88@users.noreply.github.com>
|
||||
Date: Wed, 6 Mar 2024 19:40:45 +0000
|
||||
Subject: [PATCH] power: reset: add the Powkiddy RGB10-Max-3-Pro to the Odroid
|
||||
Go Ultra poweroff driver
|
||||
|
||||
---
|
||||
drivers/power/reset/odroid-go-ultra-poweroff.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/power/reset/odroid-go-ultra-poweroff.c b/drivers/power/reset/odroid-go-ultra-poweroff.c
|
||||
index 9cac7aef77f0..9e48a34cee79 100644
|
||||
--- a/drivers/power/reset/odroid-go-ultra-poweroff.c
|
||||
+++ b/drivers/power/reset/odroid-go-ultra-poweroff.c
|
||||
@@ -142,7 +142,8 @@ static int __init odroid_go_ultra_poweroff_init(void)
|
||||
int ret;
|
||||
|
||||
/* Only create when running on the Odroid Go Ultra device */
|
||||
- if (!of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra"))
|
||||
+ if (!(of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra") ||
|
||||
+ of_device_is_compatible(of_root, "powkiddy,rgb10-max-3-pro")))
|
||||
return -ENODEV;
|
||||
|
||||
ret = platform_driver_register(&odroid_go_ultra_poweroff_driver);
|
||||
@@ -163,7 +164,8 @@ static int __init odroid_go_ultra_poweroff_init(void)
|
||||
static void __exit odroid_go_ultra_poweroff_exit(void)
|
||||
{
|
||||
/* Only delete when running on the Odroid Go Ultra device */
|
||||
- if (!of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra"))
|
||||
+ if (!(of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra") ||
|
||||
+ of_device_is_compatible(of_root, "powkiddy,rgb10-max-3-pro")))
|
||||
return;
|
||||
|
||||
platform_device_unregister(pdev);
|
||||
--
|
||||
2.34.1
|
||||
|
Loading…
Reference in a new issue