fecb494bee
Fix sparse & checkpatch warnings in OMAP2/3 PRCM & PM code. This mostly consists of: - converting pointer comparisons to integers in form similar to (ptr == 0) to the standard idiom (!ptr) - labeling a few non-static private functions as static - adding prototypes for *_init() functions in the appropriate header files, and getting rid of the corresponding open-coded extern prototypes in other C files - renaming the variable 'sclk' in mach-omap2/clock.c:omap2_get_apll_clkin to avoid shadowing an earlier declaration Clean up checkpatch issues. This mostly involves: - converting some asm/ includes to linux/ includes - cleaning up some whitespace - getting rid of braces for conditionals with single following statements Also take care of a few odds and ends, including: - getting rid of unlikely() and likely() - none of this code is particularly fast-path code, so the performance impact seems slim; and some of those likely() and unlikely() indicators are probably not as accurate as the ARM's branch predictor - removing some superfluous casts linux-omap source commit is 347df59f5d20fdf905afbc26b1328b0e28a8a01b. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
board-2430sdp.c | ||
board-apollon.c | ||
board-generic.c | ||
board-h4.c | ||
board-ldp.c | ||
board-omap3beagle.c | ||
board-omap3pandora.c | ||
board-overo.c | ||
clock24xx.c | ||
clock24xx.h | ||
clock34xx.c | ||
clock34xx.h | ||
clock.c | ||
clock.h | ||
clockdomain.c | ||
clockdomains.h | ||
cm-regbits-24xx.h | ||
cm-regbits-34xx.h | ||
cm.h | ||
control.c | ||
devices.c | ||
gpmc.c | ||
id.c | ||
io.c | ||
irq.c | ||
Kconfig | ||
mailbox.c | ||
Makefile | ||
Makefile.boot | ||
mcbsp.c | ||
memory.c | ||
memory.h | ||
mmc-twl4030.c | ||
mmc-twl4030.h | ||
mux.c | ||
pm.c | ||
powerdomain.c | ||
powerdomains24xx.h | ||
powerdomains34xx.h | ||
powerdomains.h | ||
prcm-common.h | ||
prcm.c | ||
prm-regbits-24xx.h | ||
prm-regbits-34xx.h | ||
prm.h | ||
sdrc.h | ||
serial.c | ||
sleep24xx.S | ||
sram34xx.S | ||
sram242x.S | ||
sram243x.S | ||
timer-gp.c | ||
usb-tusb6010.c |