[PATCH v2 0/3] Add module build support for timer driver

From: Chunyan Zhang
Date: Thu Jul 15 2021 - 02:55:13 EST


From: Chunyan Zhang <chunyan.zhang@xxxxxxxxxx>

This patchset was based on the previous one [1], and add a few
boilerplate macros for module build purpose according to comments
from Thomas Gleixner on the patch [2].

Also switch sprd timer driver to use the help macros for support
module build.

* Changes from v1:
- Removed TIMER_OF_DECLARE() from timer-sprd.c, and removed ifdef;
- Rebased on v5.14-rc1.

[1] https://lkml.org/lkml/2020/3/24/72
[2] https://www.spinics.net/lists/arm-kernel/msg826631.html

Chunyan Zhang (2):
clocksource/drivers/timer-of: Add boilerplate macros for timer module
driver
clocksource/drivers/sprd: Add module support to Unisoc timer

Saravana Kannan (1):
drivers/clocksource/timer-of: Remove __init markings

drivers/clocksource/Kconfig | 2 +-
drivers/clocksource/timer-of.c | 30 ++++++++++++++++++++++--------
drivers/clocksource/timer-of.h | 24 ++++++++++++++++++++++--
drivers/clocksource/timer-sprd.c | 15 ++++++++++-----
4 files changed, 55 insertions(+), 16 deletions(-)

--
2.25.1