]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: isp1301-omap: Add missing gpiod_add_lookup_table function
authorMaciej Falkowski <maciej.falkowski9@gmail.com>
Thu, 1 Apr 2021 16:20:32 +0000 (18:20 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 18 May 2021 06:44:41 +0000 (09:44 +0300)
commitd3c0f093a09dd54887ff97d74b8242dd1e49322c
tree891d3715d2061ccd0bb8f4ca45c7d813019fc511
parent3594d9d1578cb9fc0b5e11c6cf5e5601ee2ebeaf
ARM: OMAP1: isp1301-omap: Add missing gpiod_add_lookup_table function

The gpiod table was added without any usage making it unused
as reported by Clang compilation from omap1_defconfig on linux-next:

arch/arm/mach-omap1/board-h2.c:347:34: warning: unused variable
'isp1301_gpiod_table' [-Wunused-variable]
static struct gpiod_lookup_table isp1301_gpiod_table = {
                                 ^
1 warning generated.

The patch adds the missing gpiod_add_lookup_table() function.

Signed-off-by: Maciej Falkowski <maciej.falkowski9@gmail.com>
Fixes: 3e1e4d0fab7f ("usb: isp1301-omap: Convert to use GPIO descriptors")
Link: https://github.com/ClangBuiltLinux/linux/issues/1325
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-h2.c