]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Fix remaining sparse warnings in arch/arm/mach-omap2
authorPaul Walmsley <paul@pwsan.com>
Wed, 7 May 2008 17:52:02 +0000 (11:52 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 9 May 2008 21:42:14 +0000 (14:42 -0700)
commitcdda2a9adbc5421f4857e0313afc6c189f422e25
tree73a41f8491dbbf4ea4a45a3ccb89f1ce01974307
parent352b2e24c5cd193a40ae376fec85665f2660aeb1
Fix remaining sparse warnings in arch/arm/mach-omap2

Fix remaining sparse warnings in 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, 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 checkpatch issues - this mostly involves converting some
asm/ includes to linux/ includes.

While here, shrink some bitfields in struct omap_pwm_led_platform_data
down to the smallest possible type.

Signed-off-by: Tony Lindgren <tony@atomide.com>
14 files changed:
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/mux.c
arch/arm/mach-omap2/serial.c
arch/arm/mach-omap2/usb-ehci.c
include/asm-arm/arch-omap/board-3430sdp.h
include/asm-arm/arch-omap/board.h
include/asm-arm/arch-omap/cpu.h
include/asm-arm/arch-omap/mmc.h
include/asm-arm/arch-omap/omapfb.h
include/asm-arm/arch-omap/system.h
include/asm-arm/arch-omap/timex.h
include/asm-arm/arch-omap/usb.h