]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pinctrl/nomadik: use irq_create_mapping()
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Oct 2012 15:06:54 +0000 (17:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Oct 2012 08:33:39 +0000 (10:33 +0200)
commit268300be0e1a0b06582af55251294b268c3d4654
tree249d9f9ba573aa0d433115e91eef70bfe23f619f
parent7ae9d71e8df27a3ab60a05ae3add08728debc09c
pinctrl/nomadik: use irq_create_mapping()

Since in the DT case, the linear domain path will not allocate
descriptors for the IRQs, we need to use irq_create_mapping()
for mapping hwirqs to Linux IRQs, so these descriptors get
created on-the-fly in this case.

ChangeLog v1->v2:

- Just use irq_create_mapping() in the .to_irq function since
  this is called before unmasking or enabling any interrupt
  lines, so irq_find_mapping() should be sufficient for the
  IRQ handler function.

Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c