]> git.baikalelectronics.ru Git - kernel.git/commit
omap2+: Fix unused variable warning for omap_irq_base
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Jan 2011 11:57:44 +0000 (11:57 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 27 Jan 2011 23:33:47 +0000 (15:33 -0800)
commit5a12d030bd3e6f14266d37faebabfa49e93b7095
tree318072a09a23b66c553fd910f602447ef857d5dd
parent41bed1b0743cb16a4e9793059c1a652847bf09ce
omap2+: Fix unused variable warning for omap_irq_base

Commit b36f14de7f7525195559cd949c8a093b932a36ec
(omap2+: Initialize omap_irq_base for entry-macro.S from
platform code) simplified the handling of omap_irq_base
for multi-omap builds. However, this patch also introduced
a build warning for !MULTI_OMAP2 builds:

arch/arm/mach-omap2/io.c: In function 'omap_irq_base_init':
arch/arm/mach-omap2/io.c:322: warning: unused variable 'omap_irq_base'

Fix this by removing the ifdef. Also simplify things further
by moving omap_irq_base out of entry-macro.S.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[tony@atomide.com: updated comments]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/include/mach/entry-macro.S
arch/arm/mach-omap2/io.c