Skip to content

Commit 9d0ced0

Browse files
committed
microblaze: Use irq_of_parse_and_map for timer
It is necessary to call generic function for irq finding. The main reason is that this generic function calls irq_create_of_mapping which can add some shift because of NO_IRQ. Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent 2ecb899 commit 9d0ced0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/kernel/timer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void __init time_init(void)
263263

264264
timer_baseaddr = be32_to_cpup(of_get_property(timer, "reg", NULL));
265265
timer_baseaddr = (unsigned long) ioremap(timer_baseaddr, PAGE_SIZE);
266-
irq = be32_to_cpup(of_get_property(timer, "interrupts", NULL));
266+
irq = irq_of_parse_and_map(timer, 0);
267267
timer_num = be32_to_cpup(of_get_property(timer,
268268
"xlnx,one-timer-only", NULL));
269269
if (timer_num) {

0 commit comments

Comments
 (0)