diff mbox

[linux-next] fix compilation error in mach-omap2/display.c

Message ID 20170828093207.GA29080@amd (mailing list archive)
State New, archived
Headers show

Commit Message

Pavel Machek Aug. 28, 2017, 9:32 a.m. UTC
In linux-next 0828, I get

  CC      arch/arm/mach-omap2/display.o
  arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
  arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first

Fix it.

Signed-off-by: Pavel Machek <pavel@ucw.cz>

Comments

Sebastian Reichel Aug. 28, 2017, 11:24 a.m. UTC | #1
Hi,

On Mon, Aug 28, 2017 at 11:32:07AM +0200, Pavel Machek wrote:
> In linux-next 0828, I get
> 
>   CC      arch/arm/mach-omap2/display.o
>   arch/arm/mach-omap2/display.c: In function 'omapdss_init_fbdev':
>   arch/arm/mach-omap2/display.c:184:2: error: 'r' undeclared (first
> 
> Fix it.
> 
> Signed-off-by: Pavel Machek <pavel@ucw.cz>

https://lkml.org/lkml/2017/8/23/346

-- Sebastian
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 798fc71..b3f6eb5 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -172,6 +172,7 @@  static int __init omapdss_init_fbdev(void)
 		.set_min_bus_tput = omap_dss_set_min_bus_tput,
 	};
 	struct device_node *node;
+	int r;
 
 	board_data.version = omap_display_get_version();
 	if (board_data.version == OMAPDSS_VER_UNKNOWN) {