gpio/tegra: convert to use linear irqdomain
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Oct 2012 19:00:09 +0000 (21:00 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:37:22 +0000 (09:37 +0200)
commitd0235677311cbd404a3dcd3c0f24bf15dd24dd36
tree8d826d9579e4a293573c8ad27558281484d2e33c
parent529f2ad5e374f61987a8312603963c61d75a890a
gpio/tegra: convert to use linear irqdomain

The Tegra driver tries to do the work of irq_domain_add_linear()
by reserving a bunch of descriptors somewhere and keeping track
of the base offset, then calling irq_domain_add_legacy(). Let's
stop doing that and simply use the linear IRQ domain.

For this to work: use irq_create_mapping() in the IRQ iterator
so that the descriptors get allocated here.

Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c