--- zzzz-none-000/linux-3.10.107/arch/powerpc/sysdev/fsl_gtm.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/sysdev/fsl_gtm.c 2021-02-04 17:41:59.000000000 +0000 @@ -19,6 +19,8 @@ #include #include #include +#include +#include #include #include #include @@ -401,16 +403,15 @@ gtm->clock = *clock; for (i = 0; i < ARRAY_SIZE(gtm->timers); i++) { - int ret; - struct resource irq; + unsigned int irq; - ret = of_irq_to_resource(np, i, &irq); - if (ret == NO_IRQ) { + irq = irq_of_parse_and_map(np, i); + if (irq == NO_IRQ) { pr_err("%s: not enough interrupts specified\n", np->full_name); goto err; } - gtm->timers[i].irq = irq.start; + gtm->timers[i].irq = irq; gtm->timers[i].gtm = gtm; }