spi: pxa2xx: Fix build error because of missing header
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 29 Sep 2016 06:45:20 +0000 (09:45 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 29 Sep 2016 18:00:41 +0000 (11:00 -0700)
commit089bd46d8bc1fe5a28351e82e4adcaa5a40121b5
tree60c7f3cd25bfdaf2dc17a5ba3529a2f645907698
parent99f499cd650405bbe6a9b5386d4b11ee81514fb7
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>
drivers/spi/spi-pxa2xx.c