irqchip: orion: use of_address_count() helper
PATCH 1/1 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 <[email protected]>
--- drivers/irqchip/irq-orion.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/irqchip/irq-orion.c +1 -2
@@ -57,8 +57,7 @@ static int __init orion_irq_init(struct device_node *np,struct resource r;/* count number of irq chips by valid reg addresses */ -while (of_address_to_resource (np, num_chips, &r) ==0 ) - num_chips++; + num_chips =of_address_count (np); orion_irq_domain = irq_domain_add_linear(np, num_chips * ORION_IRQS_PER_CHIP,
Signature · 1 line
2.25.1
Quoted 3 lines · Yang Yingliang
After commit
16988c742968("of/address: introduceof_address_count()helper"), Useof_address_count()to instead of open-coding it, it's no functional change.
$ git grep of_address_count| wc -l 0
Sorry, but I'm not taking patches for stuff that isn't in Linus' tree. This sort of changes should be part of a series. Consider reposting this once we reach 6.2-rc1.
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.