summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2016-09-29 08:45:20 +0200
committerMark Brown <broonie@kernel.org>2016-09-29 20:00:41 +0200
commit089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 (patch)
tree60c7f3cd25bfdaf2dc17a5ba3529a2f645907698 /drivers/spi
parentspi: pxa2xx: Add support for GPIO descriptor chip selects (diff)
downloadlinux-089bd46d8bc1fe5a28351e82e4adcaa5a40121b5.tar.xz
linux-089bd46d8bc1fe5a28351e82e4adcaa5a40121b5.zip
spi: pxa2xx: Fix build error because of missing header
Kbuild test robot reports: drivers/spi/spi-pxa2xx.c: In function ‘setup_cs’: drivers/spi/spi-pxa2xx.c:1190:20: error: implicit declaration of function ‘desc_to_gpio’ ... Reason for this is the fact that those functions are declared in linux/gpio/consumer.h which is not included in the driver. Fix this by including it. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-pxa2xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 5e2ed7d34487..dd7b5b47291d 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -28,6 +28,7 @@
#include <linux/spi/spi.h>
#include <linux/delay.h>
#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
#include <linux/slab.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>