OMAP: fix compilation error
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Mon, 30 May 2011 22:44:31 +0000 (00:44 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 31 May 2011 13:17:01 +0000 (06:17 -0700)
commit046d886db18260d4435c942985392b7ef872337f
tree8e85afc66a289ffa04b6a448dcd3291f82cdd5d1
parent55922c9d1b84b89cb946c777fddccb3247e7df2c
OMAP: fix compilation error

Forward-declare platform_device structure in
arch/arm/plat-omap/include/plat/flash.h, otherwise compilation may break
with:

In file included from arch/arm/mach-omap1/flash.c:15:
arch/arm/plat-omap/include/plat/flash.h:14: warning: 'struct platform_device' declared inside parameter list
arch/arm/plat-omap/include/plat/flash.h:14: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-omap1/flash.c:16: warning: 'struct platform_device' declared inside parameter list
arch/arm/mach-omap1/flash.c:17: error: conflicting types for 'omap1_set_vpp'
arch/arm/plat-omap/include/plat/flash.h:14: error: previous declaration of 'omap1_set_vpp' was here

Detected and corrected while building for Amstrad Delta, confirmed with
omap1_defconfig.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/include/plat/flash.h