]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: of: Reshuffle contents of consumer.h for new library layout
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Jul 2019 10:43:35 +0000 (13:43 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Jul 2019 22:55:47 +0000 (00:55 +0200)
commit73d709cd16d133b172b61145a8648eb55dace08e
treef5ab76464cbbcad3a81eabfe6432d9222db63b4e
parent6da354026f7c105130fa156d9726ebfb760c485b
gpiolib: of: Reshuffle contents of consumer.h for new library layout

Kernel build bot reported a compilation error after the commit

  99555ef389f7 ("gpio: of: Break out OF-only code"):

drivers/gpio/gpiolib-devres.o: In function `devm_gpiod_get_from_of_node':
gpiolib-devres.c:(.text+0x19a): undefined reference to `gpiod_get_from_of_node'

This happens due to move the latter under umbrella of CONFIG_OF_GPIO while
customer.h contains staled data.

Fix it by reshuffling contents of consumer.h to satisfy build dependencies.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 99555ef389f7 ("gpio: of: Break out OF-only code"):
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190730104337.21235-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/consumer.h