From: Arnd Bergmann Date: Wed, 30 May 2018 21:53:06 +0000 (+0200) Subject: PCI: qcom: Include gpio/consumer.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a70aa7684b9ea1ca6ebd3d040a9d94b0e60ee22a;p=linux.git PCI: qcom: Include gpio/consumer.h When CONFIG_GPIOLIB is disabled, we run into a build failure: drivers/pci/dwc/pcie-qcom.c: In function 'qcom_pcie_probe': drivers/pci/dwc/pcie-qcom.c:1223:16: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] pcie->reset = devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_LOW); Including gpio/consumer.h directly is the correct fix. Signed-off-by: Arnd Bergmann Signed-off-by: Bjorn Helgaas Reviewed-by: Bjorn Andersson --- diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index 5897af7d3355a..7a04ab8b893cc 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/drivers/pci/dwc/pcie-qcom.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include