diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
commit | af52739b922f656eb1f39016fabaabe4baeda2e2 (patch) | |
tree | 79a7aa810d0493cd0cf4adebac26d37f12e8b545 /drivers/of/irq.c | |
parent | 25ed6a5e97809129a1bc852b6b5c7d03baa112c4 (diff) | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) |
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in
drivers/iio/industrialio-trigger.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of/irq.c')
-rw-r--r-- | drivers/of/irq.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c index e7bfc175b8e1..6ec743faabe8 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c | |||
@@ -386,13 +386,13 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) | |||
386 | EXPORT_SYMBOL_GPL(of_irq_to_resource); | 386 | EXPORT_SYMBOL_GPL(of_irq_to_resource); |
387 | 387 | ||
388 | /** | 388 | /** |
389 | * of_irq_get - Decode a node's IRQ and return it as a Linux irq number | 389 | * of_irq_get - Decode a node's IRQ and return it as a Linux IRQ number |
390 | * @dev: pointer to device tree node | 390 | * @dev: pointer to device tree node |
391 | * @index: zero-based index of the irq | 391 | * @index: zero-based index of the IRQ |
392 | * | ||
393 | * Returns Linux irq number on success, or -EPROBE_DEFER if the irq domain | ||
394 | * is not yet created. | ||
395 | * | 392 | * |
393 | * Returns Linux IRQ number on success, or 0 on the IRQ mapping failure, or | ||
394 | * -EPROBE_DEFER if the IRQ domain is not yet created, or error code in case | ||
395 | * of any other failure. | ||
396 | */ | 396 | */ |
397 | int of_irq_get(struct device_node *dev, int index) | 397 | int of_irq_get(struct device_node *dev, int index) |
398 | { | 398 | { |
@@ -413,12 +413,13 @@ int of_irq_get(struct device_node *dev, int index) | |||
413 | EXPORT_SYMBOL_GPL(of_irq_get); | 413 | EXPORT_SYMBOL_GPL(of_irq_get); |
414 | 414 | ||
415 | /** | 415 | /** |
416 | * of_irq_get_byname - Decode a node's IRQ and return it as a Linux irq number | 416 | * of_irq_get_byname - Decode a node's IRQ and return it as a Linux IRQ number |
417 | * @dev: pointer to device tree node | 417 | * @dev: pointer to device tree node |
418 | * @name: irq name | 418 | * @name: IRQ name |
419 | * | 419 | * |
420 | * Returns Linux irq number on success, or -EPROBE_DEFER if the irq domain | 420 | * Returns Linux IRQ number on success, or 0 on the IRQ mapping failure, or |
421 | * is not yet created, or error code in case of any other failure. | 421 | * -EPROBE_DEFER if the IRQ domain is not yet created, or error code in case |
422 | * of any other failure. | ||
422 | */ | 423 | */ |
423 | int of_irq_get_byname(struct device_node *dev, const char *name) | 424 | int of_irq_get_byname(struct device_node *dev, const char *name) |
424 | { | 425 | { |