arm: omap: gpio: don't access irq_desc array directly
commit1a9b5878671d417a856fdafe971306c99297b7f0
authorFelipe Balbi <balbi@ti.com>
Wed, 5 Jan 2011 06:46:18 +0000 (5 08:46 +0200)
committerKevin Hilman <khilman@ti.com>
Fri, 7 Jan 2011 21:33:08 +0000 (7 13:33 -0800)
tree36081197314bd24eccc01d240b64275b944ca46d
parentb97c374d8a44292c601146783aac61f3d5d1f46f
arm: omap: gpio: don't access irq_desc array directly

Instead of accessing the irq_desc array directly
we can use irq_to_desc(irq). That will allow us to,
if wanted, select SPARSE_IRQ and irq_descs will be
added to a radix tree, instead of a array.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/plat-omap/gpio.c