]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] QE: immap_qe.h should include asm/io.h
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 11 Mar 2008 17:24:21 +0000 (20:24 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:39 +0000 (01:01 -0500)
commitab1220d5ac69bd3327305c4d367548221f2bc3b4
treef3adae442da173ecf2f8d42a993b22137b036ef6
parent0b51b02edff2417deff98d8bbf294fa56b765bc6
[POWERPC] QE: immap_qe.h should include asm/io.h

Headers should include prototypes they use, otherwise build will
break if we use it without explicitly including io.h:

  CC      arch/powerpc/sysdev/qe_lib/gtm.o
In file included from include/asm/qe.h:20,
                 from arch/powerpc/sysdev/qe_lib/gtm.c:18:
include/asm/immap_qe.h: In function ‘immrbar_virt_to_phys’:
include/asm/immap_qe.h:480: error: implicit declaration of function ‘virt_to_phys’
make[2]: *** [arch/powerpc/sysdev/qe_lib/gtm.o] Error 1
make[1]: *** [arch/powerpc/sysdev/qe_lib] Error 2

gtm.c needs qe.h (which includes immap_qe.h) to use qe_get_brg_clk().

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/asm-powerpc/immap_qe.h