[PATCH 6/7] gpio/langwell: find the irq domain mapping

From: Linus Walleij
Date: Tue Oct 16 2012 - 15:34:12 EST

Switch from creating the IRQ domain mapping to finding it. In this
case we know very well that the driver has created the apropriate
mapping, we just need to locate it, no need to create any
on-the-fly mappings.

Cc: Rob Herring <rob.herring@xxxxxxxxxxx>
Cc: Grant Likely <grant.likely@xxxxxxxxxxxx>
Cc: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
drivers/gpio/gpio-langwell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-langwell.c b/drivers/gpio/gpio-langwell.c
index 202a992..0c88fc6 100644
--- a/drivers/gpio/gpio-langwell.c
+++ b/drivers/gpio/gpio-langwell.c
@@ -177,7 +177,7 @@ static int lnw_gpio_direction_output(struct gpio_chip *chip,
static int lnw_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
struct lnw_gpio *lnw = container_of(chip, struct lnw_gpio, chip);
- return irq_create_mapping(lnw->domain, offset);
+ return irq_find_mapping(lnw->domain, offset);

static int lnw_irq_type(struct irq_data *d, unsigned type)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/