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
|
||
---|---|---|
.. | ||
blizzard.h | ||
board-2430sdp.h | ||
board-ams-delta.h | ||
board-apollon.h | ||
board-fsample.h | ||
board-h2.h | ||
board-h3.h | ||
board-h4.h | ||
board-innovator.h | ||
board-ldp.h | ||
board-nokia.h | ||
board-omap3beagle.h | ||
board-osk.h | ||
board-overo.h | ||
board-palmte.h | ||
board-palmtt.h | ||
board-palmz71.h | ||
board-perseus2.h | ||
board-sx1.h | ||
board-voiceblue.h | ||
board.h | ||
clkdev.h | ||
clock.h | ||
clockdomain.h | ||
common.h | ||
control.h | ||
cpu.h | ||
debug-macro.S | ||
dma.h | ||
dmtimer.h | ||
dsp_common.h | ||
eac.h | ||
entry-macro.S | ||
fpga.h | ||
gpio-switch.h | ||
gpio.h | ||
gpioexpander.h | ||
gpmc.h | ||
hardware.h | ||
hwa742.h | ||
io.h | ||
irda.h | ||
irqs.h | ||
keypad.h | ||
lcd_mipid.h | ||
led.h | ||
mailbox.h | ||
mcbsp.h | ||
mcspi.h | ||
memory.h | ||
menelaus.h | ||
mmc.h | ||
mtd-xip.h | ||
mux.h | ||
nand.h | ||
omap-alsa.h | ||
omap16xx.h | ||
omap24xx.h | ||
omap34xx.h | ||
omap730.h | ||
omap1510.h | ||
omapfb.h | ||
onenand.h | ||
param.h | ||
pm.h | ||
powerdomain.h | ||
prcm.h | ||
sdrc.h | ||
serial.h | ||
sram.h | ||
system.h | ||
tc.h | ||
timex.h | ||
uncompress.h | ||
usb.h | ||
vmalloc.h |