OSDN Git Service

clocksource/drivers/exynos_mct: Refactor resources allocation
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 1 Nov 2021 19:35:30 +0000 (21:35 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 16 Nov 2021 15:12:00 +0000 (16:12 +0100)
commit7cd925a8823d16de5614d3f0aabea9948747accd
treee698d295af242aae2a57a6a648827191f62f3e7c
parentad253b3dd79851d926154ef747a69427573233e4
clocksource/drivers/exynos_mct: Refactor resources allocation

Move interrupts allocation from exynos4_timer_resources() into separate
function together with the interrupt number parsing code from
mct_init_dt(), so the code for managing interrupts is kept together.
While touching exynos4_timer_resources() function, move of_iomap() to it.
No functional changes.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20211101193531.15078-2-semen.protsenko@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/exynos_mct.c