diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2016-09-29 09:45:20 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-29 11:00:41 -0700 |
commit | 089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 (patch) | |
tree | 60c7f3cd25bfdaf2dc17a5ba3529a2f645907698 | |
parent | 99f499cd650405bbe6a9b5386d4b11ee81514fb7 (diff) | |
download | lwn-089bd46d8bc1fe5a28351e82e4adcaa5a40121b5.tar.gz lwn-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>
-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 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> |