gpio/omap: Fix IRQ handling for SPARSE_IRQ
authorBenoit Cousson <b-cousson@ti.com>
Thu, 23 Feb 2012 20:50:10 +0000 (21:50 +0100)
committerBenoit Cousson <b-cousson@ti.com>
Mon, 5 Mar 2012 22:02:53 +0000 (23:02 +0100)
commit25db711df3258d125dc1209800317e5c0ef3c870
tree7445b68d6f50f65cb1f316dcf135494e3737910a
parent384ebe1c2849160d040df3e68634ec506f13d9ff
gpio/omap: Fix IRQ handling for SPARSE_IRQ

The driver is still relying on internal OMAP IRQ defines that
are not relevant anymore if OMAP is built with SPARSE_IRQ.

Replace the defines with the proper IRQ base number.
Clean some comment style issue.
Remove some hidden and ugly cpu_class_is_omap1() inside the
gpio header.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Tested-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
arch/arm/plat-omap/include/plat/gpio.h
drivers/gpio/gpio-omap.c