aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-19 06:45:04 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-19 06:50:56 -0400
commiteed456f93d01e9476a1e777d22ae8a8382546ab7 (patch)
tree99c54b0679abeecc268e15e2dbd00e01d13627a4
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff)
regmap: irq: Clarify error message when we fail to request primary IRQ
Display the name for the chip rather than just the primary IRQ so it is clearer what exactly has failed. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/base/regmap/regmap-irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c
index 020ea2b9fd2f..1643e889bafc 100644
--- a/drivers/base/regmap/regmap-irq.c
+++ b/drivers/base/regmap/regmap-irq.c
@@ -460,7 +460,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
460 ret = request_threaded_irq(irq, NULL, regmap_irq_thread, irq_flags, 460 ret = request_threaded_irq(irq, NULL, regmap_irq_thread, irq_flags,
461 chip->name, d); 461 chip->name, d);
462 if (ret != 0) { 462 if (ret != 0) {
463 dev_err(map->dev, "Failed to request IRQ %d: %d\n", irq, ret); 463 dev_err(map->dev, "Failed to request IRQ %d for %s: %d\n",
464 irq, chip->name, ret);
464 goto err_domain; 465 goto err_domain;
465 } 466 }
466 467