video: fbdev: omapfb: lcd_ams_delta: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Apr 2022 21:18:51 +0000 (23:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 21 Apr 2022 13:00:27 +0000 (15:00 +0200)
commit7727adb97a6c4e9f14efa42c795650a51778e782
tree2b136c4d5a80390c6c90d99557043e8b1ec8985d
parent3123109284176b1532874591f7c81f3837bbdc17
video: fbdev: omapfb: lcd_ams_delta: fix unused variable warning

A recent cleanup patch removed the only reference to a local variable
in some configurations.

Move the variable into the one block it is still used in, inside
of an #ifdef, to avoid this warning.

Fixes: 9d773f103b89 ("video: fbdev: omapfb: lcd_ams_delta: Make use of the helper function dev_err_probe()")
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/video/fbdev/omap/lcd_ams_delta.c