Skip to content

Commit 70befed

Browse files
Yang YingliangMarc Zyngier
authored andcommitted
irqchip/orion: Use of_address_count() helper
After commit 16988c7 ("of/address: introduce of_address_count() helper"), Use of_address_count() to instead of open-coding it, it's no functional change. Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d0afed8 commit 70befed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/irqchip/irq-orion.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ static int __init orion_irq_init(struct device_node *np,
5757
struct resource r;
5858

5959
/* count number of irq chips by valid reg addresses */
60-
while (of_address_to_resource(np, num_chips, &r) == 0)
61-
num_chips++;
60+
num_chips = of_address_count(np);
6261

6362
orion_irq_domain = irq_domain_add_linear(np,
6463
num_chips * ORION_IRQS_PER_CHIP,

0 commit comments

Comments
 (0)