]> git.karo-electronics.de Git - linux-beck.git/commit
serial: clps711x: Fix COMPILE_TEST build for target without GPIOLIB support
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 9 Sep 2014 04:14:36 +0000 (08:14 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Sep 2014 05:37:35 +0000 (22:37 -0700)
commitefb089517d2f34a58aceb600ab58b0ca3db1fa07
tree2afc203a1c788c766972748ca2e592d4ea67553e
parent999156ada570cb4a2eaee42e47c9e659b5c577fb
serial: clps711x: Fix COMPILE_TEST build for target without GPIOLIB support

The patch fixes the following build error of CLPS711X serial driver for
targets without GPIOLIB support:

>> drivers/tty/serial/serial_mctrl_gpio.c:44:6: error: redefinition of 'mctrl_gpio_set'
  void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl)
      ^
  In file included from drivers/tty/serial/serial_mctrl_gpio.c:23:0:
  drivers/tty/serial/serial_mctrl_gpio.h:80:6: note: previous definition of 'mctrl_gpio_set' was here
  void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl)
      ^

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig