]> 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)
commiteb236fbc3c1842d713809d8380eabc7641a322a2
tree891d3715d2061ccd0bb8f4ca45c7d813019fc511
parenta82093c22d5888eba2e9c254ecacf219167238c4
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: bacfc55c97c8 ("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