linux/drivers/pci/controller/dwc
YueHaibing 381ed79c86 PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB
If CONFIG_GPIOLIB is not selected the compilation results in the
following build errors:

drivers/pci/controller/dwc/pci-dra7xx.c:
 In function dra7xx_pcie_probe:
drivers/pci/controller/dwc/pci-dra7xx.c:777:10:
 error: implicit declaration of function devm_gpiod_get_optional;
 did you mean devm_regulator_get_optional? [-Werror=implicit-function-declaration]

  reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH);

drivers/pci/controller/dwc/pci-dra7xx.c:778:45: error: ‘GPIOD_OUT_HIGH’
undeclared (first use in this function); did you mean ‘GPIOF_INIT_HIGH’?
  reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH);
                                             ^~~~~~~~~~~~~~
                                             GPIOF_INIT_HIGH

Fix them by including the appropriate header file.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2019-07-09 17:25:13 +01:00
..
Kconfig PCI: imx6: Simplify Kconfig depends on 2019-07-05 16:44:41 +01:00
Makefile PCI: al: Add Amazon Annapurna Labs PCIe host controller driver 2019-04-25 16:33:07 -05:00
pci-dra7xx.c PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB 2019-07-09 17:25:13 +01:00
pci-exynos.c PCI: exynos: Drop unnecessary root_bus_nr setting 2018-07-13 14:07:47 +01:00
pci-imx6.c Merge branch 'remotes/lorenzo/pci/imx' 2019-05-13 18:34:39 -05:00
pci-keystone.c PCI: keystone: Add support for PCIe EP in AM654x Platforms 2019-05-01 15:50:13 +01:00
pci-layerscape-ep.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pci-layerscape.c PCI: dwc: layerscape: Fix a leaked reference by adding missing of_node_put() 2019-04-01 10:39:17 +01:00
pci-meson.c PCI: amlogic: Fix build failure due to missing gpio header 2019-01-08 09:01:44 -06:00
pcie-al.c PCI: al: Add Amazon Annapurna Labs PCIe host controller driver 2019-04-25 16:33:07 -05:00
pcie-armada8k.c Revert "PCI: armada8k: Add support for gpio controlled reset signal" 2019-01-31 15:07:29 -06:00
pcie-artpec6.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware-ep.c PCI: designware-ep: Use aligned ATU window for raising MSI interrupts 2019-05-01 15:50:13 +01:00
pcie-designware-host.c PCI: dwc: Export APIs to support .remove() implementation 2019-06-27 12:02:46 +01:00
pcie-designware-plat.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware.c PCI: dwc: Export APIs to support .remove() implementation 2019-06-27 12:02:46 +01:00
pcie-designware.h PCI: dwc: Cleanup DBI,ATU read and write APIs 2019-06-27 12:02:46 +01:00
pcie-hisi.c
pcie-histb.c PCI: histb: Constify dw_pcie_host_ops structure 2018-11-08 13:54:44 +00:00
pcie-kirin.c PCI: kirin: Fix section mismatch warning 2018-10-01 17:16:23 +01:00
pcie-qcom.c PCI: qcom: Use default config space read function 2019-05-07 08:50:36 -05:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00
pcie-uniphier.c PCI: uniphier: Fix a leaked reference by adding missing of_node_put() 2019-03-29 16:57:50 +00:00