]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccb75c6ebe8590d0bd76f3cce26cda7161054545
tree60c7f3cd25bfdaf2dc17a5ba3529a2f645907698
parentea914afc0c2e5cb34505ac651de5b7313653fa50
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