]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/em: convert to linear IRQ domain
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Oct 2012 18:15:02 +0000 (20:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:41:45 +0000 (09:41 +0200)
commit9dafc953aaa131ca89e3f445402273fe1f3eb56a
tree8ae2eb4155438ca703f99ef3fc9bbffeba8d1c5e
parent6a7abf5f86348798fe9ce401e410fe20d97cb06a
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