diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2016-09-29 06:45:20 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-29 18:00:41 (GMT) |
commit | 089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 (patch) | |
tree | 60c7f3cd25bfdaf2dc17a5ba3529a2f645907698 /drivers/spi/spi-pxa2xx.c | |
parent | 99f499cd650405bbe6a9b5386d4b11ee81514fb7 (diff) | |
download | linux-089bd46d8bc1fe5a28351e82e4adcaa5a40121b5.tar.xz |
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/spi-pxa2xx.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 5e2ed7d..dd7b5b4 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> |