diff options
author | Punit Agrawal <punit.agrawal@arm.com> | 2016-05-31 08:56:48 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-05 11:11:10 -0400 |
commit | 545d5d657b720e9c4dc773265bb7e9d88e34b269 (patch) | |
tree | b8e94668d0c94fc5e1bbda4129a7c6fae69922bf /kernel | |
parent | f88eecfe2f22b2790e7527c0aaec14ea175919de (diff) |
genirq: Update stale comment for __irq_domain_add
Commit 1bf4ddc46c5d ("irqdomain: Introduce irq_domain_create_{linear,
tree}") introduced the use of fwnode_handle to identify the interrupt
controller when calling __irq_domain_add but missed updating the kernel
doc parameters for the function.
Update this comment. While we are touching this code, also consolidate
the declaration and assignment of of_node.
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Marc Zygnier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/1464699409-23113-1-git-send-email-punit.agrawal@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/irqdomain.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index f10cffe8aefb..8c0a0ae43521 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c | |||
@@ -80,7 +80,7 @@ EXPORT_SYMBOL_GPL(irq_domain_free_fwnode); | |||
80 | 80 | ||
81 | /** | 81 | /** |
82 | * __irq_domain_add() - Allocate a new irq_domain data structure | 82 | * __irq_domain_add() - Allocate a new irq_domain data structure |
83 | * @of_node: optional device-tree node of the interrupt controller | 83 | * @fwnode: firmware node for the interrupt controller |
84 | * @size: Size of linear map; 0 for radix mapping only | 84 | * @size: Size of linear map; 0 for radix mapping only |
85 | * @hwirq_max: Maximum number of interrupts supported by controller | 85 | * @hwirq_max: Maximum number of interrupts supported by controller |
86 | * @direct_max: Maximum value of direct maps; Use ~0 for no limit; 0 for no | 86 | * @direct_max: Maximum value of direct maps; Use ~0 for no limit; 0 for no |
@@ -96,10 +96,8 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size, | |||
96 | const struct irq_domain_ops *ops, | 96 | const struct irq_domain_ops *ops, |
97 | void *host_data) | 97 | void *host_data) |
98 | { | 98 | { |
99 | struct device_node *of_node = to_of_node(fwnode); | ||
99 | struct irq_domain *domain; | 100 | struct irq_domain *domain; |
100 | struct device_node *of_node; | ||
101 | |||
102 | of_node = to_of_node(fwnode); | ||
103 | 101 | ||
104 | domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), | 102 | domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), |
105 | GFP_KERNEL, of_node_to_nid(of_node)); | 103 | GFP_KERNEL, of_node_to_nid(of_node)); |