We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423511e commit 0dbc452Copy full SHA for 0dbc452
drivers/pci/controller/dwc/pcie-kirin.c
@@ -13,6 +13,7 @@
13
#include <linux/delay.h>
14
#include <linux/err.h>
15
#include <linux/gpio.h>
16
+#include <linux/gpio/consumer.h>
17
#include <linux/interrupt.h>
18
#include <linux/mfd/syscon.h>
19
#include <linux/of_address.h>
@@ -366,12 +367,11 @@ static int kirin_pcie_get_gpio_enable(struct kirin_pcie *pcie,
366
367
struct platform_device *pdev)
368
{
369
struct device *dev = &pdev->dev;
- struct device_node *np = dev->of_node;
370
char name[32];
371
int ret, i;
372
373
/* This is an optional property */
374
- ret = of_gpio_named_count(np, "hisilicon,clken-gpios");
+ ret = gpiod_count(dev, "hisilicon,clken");
375
if (ret < 0)
376
return 0;
377
0 commit comments