29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
From 9de42a7ce7b821596a151cfaa0aca79d53c2170f Mon Sep 17 00:00:00 2001
|
||
|
From: Igor Pecovnik <igor.pecovnik@gmail.com>
|
||
|
Date: Sun, 7 Mar 2021 15:24:02 +0100
|
||
|
Subject: [PATCH] PCI: rockchip: support ep-gpio undefined case
|
||
|
|
||
|
Signed-off-by: Aditya Prayoga <aditya@kobol.io>
|
||
|
Changed by: Igor Pecovnik <igor.pecovnik@gmail.com>
|
||
|
---
|
||
|
drivers/pci/controller/pcie-rockchip.c | 3 +--
|
||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/pci/controller/pcie-rockchip.c b/drivers/pci/controller/pcie-rockchip.c
|
||
|
index 990a00e08..193d26562 100644
|
||
|
--- a/drivers/pci/controller/pcie-rockchip.c
|
||
|
+++ b/drivers/pci/controller/pcie-rockchip.c
|
||
|
@@ -118,8 +118,7 @@ int rockchip_pcie_parse_dt(struct rockchip_pcie *rockchip)
|
||
|
}
|
||
|
|
||
|
if (rockchip->is_rc) {
|
||
|
- rockchip->ep_gpio = devm_gpiod_get_optional(dev, "ep",
|
||
|
- GPIOD_OUT_HIGH);
|
||
|
+ rockchip->ep_gpio = devm_gpiod_get_optional(dev, "ep", GPIOD_OUT_HIGH);
|
||
|
if (IS_ERR(rockchip->ep_gpio))
|
||
|
return dev_err_probe(dev, PTR_ERR(rockchip->ep_gpio),
|
||
|
"failed to get ep GPIO\n");
|
||
|
--
|
||
|
Created with Armbian build tools https://github.com/armbian/build
|
||
|
|