From 50a212ec906f7524620675f0c57357691c26c81f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 16 Oct 2024 01:20:19 +0000
Subject: [PATCH] 修改GPIO导出默认初始值
---
u-boot/drivers/power/regulator/fixed.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/u-boot/drivers/power/regulator/fixed.c b/u-boot/drivers/power/regulator/fixed.c
index c35ca2a..172eb56 100644
--- a/u-boot/drivers/power/regulator/fixed.c
+++ b/u-boot/drivers/power/regulator/fixed.c
@@ -45,10 +45,12 @@
gpio = &dev_pdata->gpio;
ret = gpio_request_by_name(dev, "gpio", 0, gpio, flags);
if (ret) {
- debug("Fixed regulator optional enable GPIO - not found! Error: %d\n",
- ret);
- if (ret != -ENOENT)
- return ret;
+ ret = gpio_request_by_name(dev, "gpios", 0, gpio, flags);
+ if (ret) {
+ debug("Fixed regulator optional enable GPIO - not found! Error: %d\n", ret);
+ if (ret != -ENOENT)
+ return ret;
+ }
}
/* Get optional ramp up delay */
--
Gitblit v1.6.2