ramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n
authorAndré Draszik <git@andred.net>
Thu, 22 Feb 2018 11:04:28 +0000 (11:04 +0000)
committerJohn Crispin <john@phrozen.org>
Tue, 13 Mar 2018 07:34:58 +0000 (08:34 +0100)
commitcff2dedebc665dc1d3d64d850afd0124c6d35eaa
treeeb5eecbb90f31a28b855b7b3b42f0cc5c0c3746a
parent4fd87220567f1ae3ad209da1f602dc81c6b4d6b1
ramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n

If CONFIG_GPIO_SYSFS=n, compilation fails with
  drivers/built-in.o: In function `gpio_export_with_name':
  include/asm-generic/gpio.h:128: undefined reference to `__gpiod_export'

This is because the stub in that case has the wrong name,
_gpiod_export() - note the missing underscore (_) at the
start.

Fix the stub, and add the correct prototype for the real
implementation.

Signed-off-by: André Draszik <git@andred.net>
target/linux/ramips/patches-4.9/0024-GPIO-add-named-gpio-exports.patch