]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
regmap: name irq_chip based on regmap_irq_chip's name
authorStephen Warren <swarren@nvidia.com>
Wed, 1 Aug 2012 17:40:48 +0000 (11:40 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 4 Aug 2012 11:13:53 +0000 (12:13 +0100)
This is intended to give each irq_chip a useful name, rather than hard-
coding them all as "regmap".

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-irq.c

index 72a6f31e8223e8874c7114d1c150676185195edc..bf1203cbd122b2036cd18af12ccf293e3e3671aa 100644 (file)
@@ -131,7 +131,6 @@ static int regmap_irq_set_wake(struct irq_data *data, unsigned int on)
 }
 
 static const struct irq_chip regmap_irq_chip = {
-       .name                   = "regmap",
        .irq_bus_lock           = regmap_irq_lock,
        .irq_bus_sync_unlock    = regmap_irq_sync_unlock,
        .irq_disable            = regmap_irq_disable,
@@ -287,6 +286,7 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
        }
 
        d->irq_chip = regmap_irq_chip;
+       d->irq_chip.name = chip->name;
        d->irq = irq;
        d->map = map;
        d->chip = chip;