Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/orion: Use of_address_count() helper

After commit 16988c742968 ("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 <yangyingliang@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230726030741.1136244-1-yangyingliang@huawei.com

authored by

Yang Yingliang and committed by
Marc Zyngier
70befeda d0afed83

+1 -2
+1 -2
drivers/irqchip/irq-orion.c
··· 57 57 struct resource r; 58 58 59 59 /* 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); 62 61 63 62 orion_irq_domain = irq_domain_add_linear(np, 64 63 num_chips * ORION_IRQS_PER_CHIP,