Revision 05946bce839b4fed5442dbfab77060fb75e051f3 authored by Anton Vorontsov on 04 July 2008, 16:59:38 UTC, committed by Linus Torvalds on 04 July 2008, 17:40:06 UTC
This patch fixes following build error when CONFIG_PM is set.

  CC      drivers/video/fsl-diu-fb.o
drivers/video/fsl-diu-fb.c: In function 'fsl_diu_suspend':
drivers/video/fsl-diu-fb.c:1327: error: 'ofdev' undeclared (first use in this function)
drivers/video/fsl-diu-fb.c:1327: error: (Each undeclared identifier is reported only once
drivers/video/fsl-diu-fb.c:1327: error: for each function it appears in.)
drivers/video/fsl-diu-fb.c: In function 'fsl_diu_resume':
drivers/video/fsl-diu-fb.c:1337: error: 'ofdev' undeclared (first use in this function)

While I'm at it, also fix this warning:

drivers/video/fsl-diu-fb.c: In function 'fsl_diu_alloc':
drivers/video/fsl-diu-fb.c:314: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'phys_addr_t'

And these section mismatches:

..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb()
..from the function fsl_diu_remove() to the function .exit.text:uninstall_fb()
..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db
..from the function install_fb() to the variable .devinit.data:fsl_diu_mode_db
..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb()
..from the function fsl_diu_probe() to the function .exit.text:uninstall_fb()

Also, some sparse fixes: make two functions static, and use NULL where
appropriate. There are still a lot of sparse warnings, mainly wrt absence
of __iomem annotations, but some will require ugly __force stuff. I'll leave
them for now, since proper fix would be not that trivial as few one-liners
below.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Timur Tabi <timur@freescale.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Cc: York Sun <yorksun@freescale.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7059d4b
History
File Mode Size
ams
Kconfig -rw-r--r-- 25.1 KB
Makefile -rw-r--r-- 2.9 KB
abituguru.c -rw-r--r-- 52.2 KB
abituguru3.c -rw-r--r-- 39.1 KB
ad7418.c -rw-r--r-- 9.8 KB
adm1021.c -rw-r--r-- 13.9 KB
adm1025.c -rw-r--r-- 19.6 KB
adm1026.c -rw-r--r-- 59.3 KB
adm1029.c -rw-r--r-- 13.7 KB
adm1031.c -rw-r--r-- 30.5 KB
adm9240.c -rw-r--r-- 23.6 KB
ads7828.c -rw-r--r-- 8.3 KB
adt7470.c -rw-r--r-- 36.1 KB
adt7473.c -rw-r--r-- 35.1 KB
applesmc.c -rw-r--r-- 38.0 KB
asb100.c -rw-r--r-- 29.6 KB
atxp1.c -rw-r--r-- 9.4 KB
coretemp.c -rw-r--r-- 11.6 KB
dme1737.c -rw-r--r-- 67.8 KB
ds1621.c -rw-r--r-- 10.5 KB
f71805f.c -rw-r--r-- 48.1 KB
f71882fg.c -rw-r--r-- 27.5 KB
f75375s.c -rw-r--r-- 23.0 KB
fscher.c -rw-r--r-- 20.3 KB
fschmd.c -rw-r--r-- 26.2 KB
fscpos.c -rw-r--r-- 19.3 KB
gl518sm.c -rw-r--r-- 23.2 KB
gl520sm.c -rw-r--r-- 28.4 KB
hdaps.c -rw-r--r-- 15.9 KB
hwmon-vid.c -rw-r--r-- 7.4 KB
hwmon.c -rw-r--r-- 2.6 KB
i5k_amb.c -rw-r--r-- 14.7 KB
ibmaem.c -rw-r--r-- 26.3 KB
ibmpex.c -rw-r--r-- 14.7 KB
it87.c -rw-r--r-- 47.0 KB
k8temp.c -rw-r--r-- 8.0 KB
lm63.c -rw-r--r-- 19.9 KB
lm70.c -rw-r--r-- 4.9 KB
lm75.c -rw-r--r-- 9.2 KB
lm75.h -rw-r--r-- 1.7 KB
lm77.c -rw-r--r-- 13.9 KB
lm78.c -rw-r--r-- 28.4 KB
lm80.c -rw-r--r-- 20.2 KB
lm83.c -rw-r--r-- 13.9 KB
lm85.c -rw-r--r-- 51.8 KB
lm87.c -rw-r--r-- 30.4 KB
lm90.c -rw-r--r-- 25.8 KB
lm92.c -rw-r--r-- 14.1 KB
lm93.c -rw-r--r-- 83.5 KB
max1619.c -rw-r--r-- 11.5 KB
max6650.c -rw-r--r-- 18.9 KB
pc87360.c -rw-r--r-- 46.7 KB
pc87427.c -rw-r--r-- 17.9 KB
sis5595.c -rw-r--r-- 25.1 KB
smsc47b397.c -rw-r--r-- 9.8 KB
smsc47m1.c -rw-r--r-- 22.2 KB
smsc47m192.c -rw-r--r-- 21.3 KB
thmc50.c -rw-r--r-- 13.5 KB
via686a.c -rw-r--r-- 30.5 KB
vt1211.c -rw-r--r-- 38.9 KB
vt8231.c -rw-r--r-- 30.7 KB
w83627ehf.c -rw-r--r-- 49.1 KB
w83627hf.c -rw-r--r-- 52.9 KB
w83781d.c -rw-r--r-- 57.8 KB
w83791d.c -rw-r--r-- 42.8 KB
w83792d.c -rw-r--r-- 57.4 KB
w83793.c -rw-r--r-- 49.6 KB
w83l785ts.c -rw-r--r-- 9.3 KB
w83l786ng.c -rw-r--r-- 22.9 KB

back to top