From: Samuel Ortiz Date: Thu, 28 May 2015 15:10:03 +0000 (+0200) Subject: NFC: nxp-nci: Fix build warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=262e7198bc0e77614f5e9301e0804462741a29fc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git NFC: nxp-nci: Fix build warning When GPIO is not enabled we hit this kind of warning: drivers/nfc/nxp-nci/i2c.c: In function 'nxp_nci_i2c_acpi_config': drivers/nfc/nxp-nci/i2c.c:320:2: error: implicit declaration of function 'devm_gpiod_get_index' [-Werror=implicit-function-declaration] gpiod_en = devm_gpiod_get_index(&client->dev, NULL, 2); This is fixed by explicitely including gpio/consumer.h. Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index 2c58bd32c991..2f77f1d03638 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include