]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fix sparse, checkpatch warnings in OMAP2/3 SMS/GPMC/SRAM code
authorPaul Walmsley <paul@pwsan.com>
Wed, 7 May 2008 17:52:01 +0000 (11:52 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 9 May 2008 21:42:02 +0000 (14:42 -0700)
commitd943497609a7f1d6687e431ff40e1d51ad9c7b7a
treeab77ef01ae3ff8e789681bf265be71a2cef1fd38
parent347df59f5d20fdf905afbc26b1328b0e28a8a01b
fix sparse, checkpatch warnings in OMAP2/3 SMS/GPMC/SRAM code

Fix sparse warnings in SMS, GPMC, SRAM code involving arch/arm/mach-omap2/.
These fixes mostly consist of:

- tagging appropriate integer<->pointer casts with __force

- marking private structures and functions as static; adding function
  prototypes in .h files for public functions

- assigning NULL to pointers in structure initializers, not 0

- adding prototypes for *_init() functions in the appropriate header
  files, and getting rid of the corresponding open-coded extern
  prototypes in other C files

Also clean up some checkpatch issues by converting some asm/ includes
to linux/ includes.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/memory.h
arch/arm/mach-omap2/sdrc.h
include/asm-arm/arch-omap/omap24xx.h
include/asm-arm/arch-omap/sram.h