summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2015-05-28 17:10:03 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-06-08 23:15:31 +0200
commit262e7198bc0e77614f5e9301e0804462741a29fc (patch)
treed3c89879a51446e43c04546e015c207a77517709 /drivers/nfc
parent551e306905ef2075b3ad03390ef3e19bd1739598 (diff)
downloadlinux-262e7198bc0e77614f5e9301e0804462741a29fc.tar.gz
linux-262e7198bc0e77614f5e9301e0804462741a29fc.tar.bz2
linux-262e7198bc0e77614f5e9301e0804462741a29fc.zip
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 <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/nxp-nci/i2c.c1
1 files changed, 1 insertions, 0 deletions
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 <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/nfc.h>
+#include <linux/gpio/consumer.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>
#include <linux/platform_data/nxp-nci.h>