gpio/em: convert to linear IRQ domain
commit7385500a49b769c95438c111aff92110b06ff751
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Oct 2012 18:15:02 +0000 (16 20:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:41:45 +0000 (26 09:41 +0200)
tree8ae2eb4155438ca703f99ef3fc9bbffeba8d1c5e
parentce931f571b6dcf8534e8740e8cd16565cf362536
gpio/em: convert to linear IRQ domain

The code in the em driver seems to want to try to do the job of
the linear IRQ domain (allocate descriptors and grab a virtual
range). So why not just use the linear IRQ domain? The code is
now cut down so we don't need isolated functions for this.

Also note that we use irq_create_mapping() to make sure
descriptors are allocated for these IRQs.

Also fixed the FIXME to remove the domain after use.

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Magnus Damm <damm@opensource.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-em.c