Commit 7727adb9 authored by Arnd Bergmann's avatar Arnd Bergmann

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: 9d773f10 ("video: fbdev: omapfb: lcd_ams_delta: Make use of the helper function dev_err_probe()")
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 31231092
...@@ -128,7 +128,6 @@ static struct lcd_panel ams_delta_panel = { ...@@ -128,7 +128,6 @@ static struct lcd_panel ams_delta_panel = {
static int ams_delta_panel_probe(struct platform_device *pdev) static int ams_delta_panel_probe(struct platform_device *pdev)
{ {
struct lcd_device *lcd_device = NULL; struct lcd_device *lcd_device = NULL;
int ret;
gpiod_vblen = devm_gpiod_get(&pdev->dev, "vblen", GPIOD_OUT_LOW); gpiod_vblen = devm_gpiod_get(&pdev->dev, "vblen", GPIOD_OUT_LOW);
if (IS_ERR(gpiod_vblen)) if (IS_ERR(gpiod_vblen))
...@@ -145,7 +144,8 @@ static int ams_delta_panel_probe(struct platform_device *pdev) ...@@ -145,7 +144,8 @@ static int ams_delta_panel_probe(struct platform_device *pdev)
&ams_delta_lcd_ops); &ams_delta_lcd_ops);
if (IS_ERR(lcd_device)) { if (IS_ERR(lcd_device)) {
ret = PTR_ERR(lcd_device); int ret = PTR_ERR(lcd_device);
dev_err(&pdev->dev, "failed to register device\n"); dev_err(&pdev->dev, "failed to register device\n");
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment