1. 31 5月, 2011 2 次提交
    • A
      ARM: OMAP2: Add missing include of linux/gpio.h · f9fa1bb9
      Axel Lin 提交于
      I got some build error like below while executing "make omap2plus_defconfig".
      
        CC      arch/arm/mach-omap2/board-2430sdp.o
      arch/arm/mach-omap2/board-2430sdp.c: In function 'omap_2430sdp_init':
      arch/arm/mach-omap2/board-2430sdp.c:247: error: 'GPIOF_OUT_INIT_LOW' undeclared (first use in this function)
      arch/arm/mach-omap2/board-2430sdp.c:247: error: (Each undeclared identifier is reported only once
      arch/arm/mach-omap2/board-2430sdp.c:247: error: for each function it appears in.)
      
      This patch fixes the build error by include linux/gpio.h instead of mach/gpio.h.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Syed Mohammed Khasim <x0khasim@ti.com>
      Cc: Grazvydas Ignotas <notasas@gmail.com>
      Cc: Steve Sakoman <steve@sakoman.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      f9fa1bb9
    • J
      OMAP: fix compilation error · 046d886d
      Janusz Krzysztofik 提交于
      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: NJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      046d886d
  2. 30 5月, 2011 38 次提交