* [PATCH] clocksource/drivers/stm: Fix section mismatches
@ 2025-10-17 5:49 Johan Hovold
2025-10-20 9:32 ` Johan Hovold
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Johan Hovold @ 2025-10-17 5:49 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: Maxime Coquelin, Alexandre Torgue, linux-kernel, Johan Hovold,
stable
Platform drivers can be probed after their init sections have been
discarded (e.g. on probe deferral or manual rebind through sysfs) so the
probe function must not live in init. Device managed resource actions
similarly cannot be discarded.
The "_probe" suffix of the driver structure name prevents modpost from
warning about this so replace it to catch any similar future issues.
Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
Cc: stable@vger.kernel.org # 6.16
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
---
drivers/clocksource/timer-nxp-stm.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/clocksource/timer-nxp-stm.c b/drivers/clocksource/timer-nxp-stm.c
index bbc40623728f..ce10bdcfc76b 100644
--- a/drivers/clocksource/timer-nxp-stm.c
+++ b/drivers/clocksource/timer-nxp-stm.c
@@ -177,15 +177,15 @@ static void nxp_stm_clocksource_resume(struct clocksource *cs)
nxp_stm_clocksource_enable(cs);
}
-static void __init devm_clocksource_unregister(void *data)
+static void devm_clocksource_unregister(void *data)
{
struct stm_timer *stm_timer = data;
clocksource_unregister(&stm_timer->cs);
}
-static int __init nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
- const char *name, void __iomem *base, struct clk *clk)
+static int nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
+ const char *name, void __iomem *base, struct clk *clk)
{
int ret;
@@ -298,9 +298,9 @@ static void nxp_stm_clockevent_resume(struct clock_event_device *ced)
nxp_stm_module_get(stm_timer);
}
-static int __init nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
- const char *name, void __iomem *base, int irq,
- struct clk *clk, int cpu)
+static int nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
+ const char *name, void __iomem *base, int irq,
+ struct clk *clk, int cpu)
{
stm_timer->base = base;
stm_timer->rate = clk_get_rate(clk);
@@ -388,7 +388,7 @@ static irqreturn_t nxp_stm_module_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static int __init nxp_stm_timer_probe(struct platform_device *pdev)
+static int nxp_stm_timer_probe(struct platform_device *pdev)
{
struct stm_timer *stm_timer;
struct device *dev = &pdev->dev;
@@ -484,14 +484,14 @@ static const struct of_device_id nxp_stm_of_match[] = {
};
MODULE_DEVICE_TABLE(of, nxp_stm_of_match);
-static struct platform_driver nxp_stm_probe = {
+static struct platform_driver nxp_stm_driver = {
.probe = nxp_stm_timer_probe,
.driver = {
.name = "nxp-stm",
.of_match_table = nxp_stm_of_match,
},
};
-module_platform_driver(nxp_stm_probe);
+module_platform_driver(nxp_stm_driver);
MODULE_DESCRIPTION("NXP System Timer Module driver");
MODULE_LICENSE("GPL");
--
2.49.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-10-17 5:49 [PATCH] clocksource/drivers/stm: Fix section mismatches Johan Hovold
@ 2025-10-20 9:32 ` Johan Hovold
2025-10-20 9:39 ` Greg KH
2025-11-05 13:32 ` Daniel Lezcano
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Johan Hovold @ 2025-10-20 9:32 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: Maxime Coquelin, Alexandre Torgue, linux-kernel, stable
On Fri, Oct 17, 2025 at 07:49:43AM +0200, Johan Hovold wrote:
> Platform drivers can be probed after their init sections have been
> discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> probe function must not live in init. Device managed resource actions
> similarly cannot be discarded.
>
> The "_probe" suffix of the driver structure name prevents modpost from
> warning about this so replace it to catch any similar future issues.
>
> Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
> Cc: stable@vger.kernel.org # 6.16
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Johan Hovold <johan@kernel.org>
Addressing this apparently depends on commit 84b1a903aed8
("time/sched_clock: Export symbol for sched_clock register function")
which was merged for 6.18-rc1.
So the stable tag should be dropped (e.g. unless it's possible to
backport also the dependency to 6.17).
Johan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-10-20 9:32 ` Johan Hovold
@ 2025-10-20 9:39 ` Greg KH
2025-10-20 9:44 ` Johan Hovold
0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2025-10-20 9:39 UTC (permalink / raw)
To: Johan Hovold
Cc: Daniel Lezcano, Thomas Gleixner, Maxime Coquelin,
Alexandre Torgue, linux-kernel, stable
On Mon, Oct 20, 2025 at 11:32:37AM +0200, Johan Hovold wrote:
> On Fri, Oct 17, 2025 at 07:49:43AM +0200, Johan Hovold wrote:
> > Platform drivers can be probed after their init sections have been
> > discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> > probe function must not live in init. Device managed resource actions
> > similarly cannot be discarded.
> >
> > The "_probe" suffix of the driver structure name prevents modpost from
> > warning about this so replace it to catch any similar future issues.
> >
> > Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
> > Cc: stable@vger.kernel.org # 6.16
> > Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> > Signed-off-by: Johan Hovold <johan@kernel.org>
>
> Addressing this apparently depends on commit 84b1a903aed8
> ("time/sched_clock: Export symbol for sched_clock register function")
> which was merged for 6.18-rc1.
>
> So the stable tag should be dropped (e.g. unless it's possible to
> backport also the dependency to 6.17).
Quite easy to do so, just ask us! :)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-10-20 9:39 ` Greg KH
@ 2025-10-20 9:44 ` Johan Hovold
0 siblings, 0 replies; 10+ messages in thread
From: Johan Hovold @ 2025-10-20 9:44 UTC (permalink / raw)
To: Greg KH
Cc: Daniel Lezcano, Thomas Gleixner, Maxime Coquelin,
Alexandre Torgue, linux-kernel, stable
On Mon, Oct 20, 2025 at 11:39:59AM +0200, Greg Kroah-Hartman wrote:
> On Mon, Oct 20, 2025 at 11:32:37AM +0200, Johan Hovold wrote:
> > On Fri, Oct 17, 2025 at 07:49:43AM +0200, Johan Hovold wrote:
> > > Platform drivers can be probed after their init sections have been
> > > discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> > > probe function must not live in init. Device managed resource actions
> > > similarly cannot be discarded.
> > >
> > > The "_probe" suffix of the driver structure name prevents modpost from
> > > warning about this so replace it to catch any similar future issues.
> > >
> > > Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
> > > Cc: stable@vger.kernel.org # 6.16
> > > Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> > > Signed-off-by: Johan Hovold <johan@kernel.org>
> >
> > Addressing this apparently depends on commit 84b1a903aed8
> > ("time/sched_clock: Export symbol for sched_clock register function")
> > which was merged for 6.18-rc1.
> >
> > So the stable tag should be dropped (e.g. unless it's possible to
> > backport also the dependency to 6.17).
>
> Quite easy to do so, just ask us! :)
Heh. I meant that there may be something preventing the dependency from
being backported (even if I didn't see anything obvious based on a quick
look at the series adding it).
Johan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-10-17 5:49 [PATCH] clocksource/drivers/stm: Fix section mismatches Johan Hovold
2025-10-20 9:32 ` Johan Hovold
@ 2025-11-05 13:32 ` Daniel Lezcano
2025-11-10 14:51 ` Johan Hovold
2025-11-12 15:22 ` Daniel Lezcano
2025-11-26 14:40 ` [tip: timers/clocksource] clocksource/drivers/nxp-stm: " tip-bot2 for Johan Hovold
3 siblings, 1 reply; 10+ messages in thread
From: Daniel Lezcano @ 2025-11-05 13:32 UTC (permalink / raw)
To: Johan Hovold, Thomas Gleixner
Cc: Maxime Coquelin, Alexandre Torgue, linux-kernel, stable
Hi Johan,
thanks for your fix.
You should replace __init by __init_or_module
On 10/17/25 07:49, Johan Hovold wrote:
> Platform drivers can be probed after their init sections have been
> discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> probe function must not live in init. Device managed resource actions
> similarly cannot be discarded.
>
> The "_probe" suffix of the driver structure name prevents modpost from
> warning about this so replace it to catch any similar future issues.
>
> Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
> Cc: stable@vger.kernel.org # 6.16
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
> drivers/clocksource/timer-nxp-stm.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/clocksource/timer-nxp-stm.c b/drivers/clocksource/timer-nxp-stm.c
> index bbc40623728f..ce10bdcfc76b 100644
> --- a/drivers/clocksource/timer-nxp-stm.c
> +++ b/drivers/clocksource/timer-nxp-stm.c
> @@ -177,15 +177,15 @@ static void nxp_stm_clocksource_resume(struct clocksource *cs)
> nxp_stm_clocksource_enable(cs);
> }
>
> -static void __init devm_clocksource_unregister(void *data)
> +static void devm_clocksource_unregister(void *data)
> {
> struct stm_timer *stm_timer = data;
>
> clocksource_unregister(&stm_timer->cs);
> }
>
> -static int __init nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
> - const char *name, void __iomem *base, struct clk *clk)
> +static int nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
> + const char *name, void __iomem *base, struct clk *clk)
> {
> int ret;
>
> @@ -298,9 +298,9 @@ static void nxp_stm_clockevent_resume(struct clock_event_device *ced)
> nxp_stm_module_get(stm_timer);
> }
>
> -static int __init nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
> - const char *name, void __iomem *base, int irq,
> - struct clk *clk, int cpu)
> +static int nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
> + const char *name, void __iomem *base, int irq,
> + struct clk *clk, int cpu)
> {
> stm_timer->base = base;
> stm_timer->rate = clk_get_rate(clk);
> @@ -388,7 +388,7 @@ static irqreturn_t nxp_stm_module_interrupt(int irq, void *dev_id)
> return IRQ_HANDLED;
> }
>
> -static int __init nxp_stm_timer_probe(struct platform_device *pdev)
> +static int nxp_stm_timer_probe(struct platform_device *pdev)
> {
> struct stm_timer *stm_timer;
> struct device *dev = &pdev->dev;
> @@ -484,14 +484,14 @@ static const struct of_device_id nxp_stm_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, nxp_stm_of_match);
>
> -static struct platform_driver nxp_stm_probe = {
> +static struct platform_driver nxp_stm_driver = {
> .probe = nxp_stm_timer_probe,
> .driver = {
> .name = "nxp-stm",
> .of_match_table = nxp_stm_of_match,
> },
> };
> -module_platform_driver(nxp_stm_probe);
> +module_platform_driver(nxp_stm_driver);
>
> MODULE_DESCRIPTION("NXP System Timer Module driver");
> MODULE_LICENSE("GPL");
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-11-05 13:32 ` Daniel Lezcano
@ 2025-11-10 14:51 ` Johan Hovold
2025-11-12 9:57 ` Daniel Lezcano
0 siblings, 1 reply; 10+ messages in thread
From: Johan Hovold @ 2025-11-10 14:51 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Thomas Gleixner, Maxime Coquelin, Alexandre Torgue, linux-kernel,
stable
Hi Daniel,
On Wed, Nov 05, 2025 at 02:32:18PM +0100, Daniel Lezcano wrote:
> You should replace __init by __init_or_module
That's not sufficient as the driver can still be rebound through sysfs
currently (the driver would probably crash anyway, but that's a separate
issue).
Also note that no drivers use __init_or_module these days, likely as
everyone uses modules and it's not worth the added complexity in trying
to get the section markers right for a build configuration that few
people care about.
I can send a follow-on patch to suppress the unbind attribute, or
include it in a v2 if you insist on using __init_or_module.
What do you prefer?
> On 10/17/25 07:49, Johan Hovold wrote:
> > Platform drivers can be probed after their init sections have been
> > discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> > probe function must not live in init. Device managed resource actions
> > similarly cannot be discarded.
Johan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-11-10 14:51 ` Johan Hovold
@ 2025-11-12 9:57 ` Daniel Lezcano
2025-11-12 10:58 ` Johan Hovold
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Lezcano @ 2025-11-12 9:57 UTC (permalink / raw)
To: Johan Hovold
Cc: Thomas Gleixner, Maxime Coquelin, Alexandre Torgue, linux-kernel,
stable
On 11/10/25 15:51, Johan Hovold wrote:
> Hi Daniel,
>
> On Wed, Nov 05, 2025 at 02:32:18PM +0100, Daniel Lezcano wrote:
>
>> You should replace __init by __init_or_module
>
> That's not sufficient as the driver can still be rebound through sysfs
> currently (the driver would probably crash anyway, but that's a separate
> issue).
>
> Also note that no drivers use __init_or_module these days, likely as
> everyone uses modules and it's not worth the added complexity in trying
> to get the section markers right for a build configuration that few
> people care about.
>
> I can send a follow-on patch to suppress the unbind attribute, or
> include it in a v2 if you insist on using __init_or_module.
>
> What do you prefer?
I think it makes sens to use __init_or_module because these drivers have
been always compiled in and we are converting them into modules.
[ ... ]
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-11-12 9:57 ` Daniel Lezcano
@ 2025-11-12 10:58 ` Johan Hovold
0 siblings, 0 replies; 10+ messages in thread
From: Johan Hovold @ 2025-11-12 10:58 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Thomas Gleixner, Maxime Coquelin, Alexandre Torgue, linux-kernel,
stable
On Wed, Nov 12, 2025 at 10:57:21AM +0100, Daniel Lezcano wrote:
> On 11/10/25 15:51, Johan Hovold wrote:
> > On Wed, Nov 05, 2025 at 02:32:18PM +0100, Daniel Lezcano wrote:
> >
> >> You should replace __init by __init_or_module
> >
> > That's not sufficient as the driver can still be rebound through sysfs
> > currently (the driver would probably crash anyway, but that's a separate
> > issue).
> >
> > Also note that no drivers use __init_or_module these days, likely as
> > everyone uses modules and it's not worth the added complexity in trying
> > to get the section markers right for a build configuration that few
> > people care about.
> >
> > I can send a follow-on patch to suppress the unbind attribute, or
> > include it in a v2 if you insist on using __init_or_module.
> >
> > What do you prefer?
>
> I think it makes sens to use __init_or_module because these drivers have
> been always compiled in and we are converting them into modules.
That's not really relevant. __init_or_module will only save a tiny bit
of memory in builds where modules are completely disabled
(i.e. !CONFIG_MODULES) which is hardly used any more.
Note that it has nothing to do with whether this particular driver is
built as a module or not.
And since no other drivers cares about this uncommon case, are you sure
you want to do this here?
Note that this would also require suppressing section mismatch warnings
for the common case (CONFIG_MODULES).
Johan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] clocksource/drivers/stm: Fix section mismatches
2025-10-17 5:49 [PATCH] clocksource/drivers/stm: Fix section mismatches Johan Hovold
2025-10-20 9:32 ` Johan Hovold
2025-11-05 13:32 ` Daniel Lezcano
@ 2025-11-12 15:22 ` Daniel Lezcano
2025-11-26 14:40 ` [tip: timers/clocksource] clocksource/drivers/nxp-stm: " tip-bot2 for Johan Hovold
3 siblings, 0 replies; 10+ messages in thread
From: Daniel Lezcano @ 2025-11-12 15:22 UTC (permalink / raw)
To: Johan Hovold, Thomas Gleixner
Cc: Maxime Coquelin, Alexandre Torgue, linux-kernel, stable
On 10/17/25 07:49, Johan Hovold wrote:
> Platform drivers can be probed after their init sections have been
> discarded (e.g. on probe deferral or manual rebind through sysfs) so the
> probe function must not live in init. Device managed resource actions
> similarly cannot be discarded.
>
> The "_probe" suffix of the driver structure name prevents modpost from
> warning about this so replace it to catch any similar future issues.
>
> Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
> Cc: stable@vger.kernel.org # 6.16
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [tip: timers/clocksource] clocksource/drivers/nxp-stm: Fix section mismatches
2025-10-17 5:49 [PATCH] clocksource/drivers/stm: Fix section mismatches Johan Hovold
` (2 preceding siblings ...)
2025-11-12 15:22 ` Daniel Lezcano
@ 2025-11-26 14:40 ` tip-bot2 for Johan Hovold
3 siblings, 0 replies; 10+ messages in thread
From: tip-bot2 for Johan Hovold @ 2025-11-26 14:40 UTC (permalink / raw)
To: linux-tip-commits
Cc: Johan Hovold, Daniel Lezcano, stable, #, 6.16, x86, linux-kernel
The following commit has been merged into the timers/clocksource branch of tip:
Commit-ID: b452d2c97eeccbf9c7ac5b3d2d9e80bf6d8a23db
Gitweb: https://git.kernel.org/tip/b452d2c97eeccbf9c7ac5b3d2d9e80bf6d8a23db
Author: Johan Hovold <johan@kernel.org>
AuthorDate: Fri, 17 Oct 2025 07:49:43 +02:00
Committer: Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Wed, 26 Nov 2025 11:24:44 +01:00
clocksource/drivers/nxp-stm: Fix section mismatches
Platform drivers can be probed after their init sections have been
discarded (e.g. on probe deferral or manual rebind through sysfs) so the
probe function must not live in init. Device managed resource actions
similarly cannot be discarded.
The "_probe" suffix of the driver structure name prevents modpost from
warning about this so replace it to catch any similar future issues.
Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: stable@vger.kernel.org # 6.16
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251017054943.7195-1-johan@kernel.org
---
drivers/clocksource/timer-nxp-stm.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/clocksource/timer-nxp-stm.c b/drivers/clocksource/timer-nxp-stm.c
index 16d5216..c320d76 100644
--- a/drivers/clocksource/timer-nxp-stm.c
+++ b/drivers/clocksource/timer-nxp-stm.c
@@ -177,15 +177,15 @@ static void nxp_stm_clocksource_resume(struct clocksource *cs)
nxp_stm_clocksource_enable(cs);
}
-static void __init devm_clocksource_unregister(void *data)
+static void devm_clocksource_unregister(void *data)
{
struct stm_timer *stm_timer = data;
clocksource_unregister(&stm_timer->cs);
}
-static int __init nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
- const char *name, void __iomem *base, struct clk *clk)
+static int nxp_stm_clocksource_init(struct device *dev, struct stm_timer *stm_timer,
+ const char *name, void __iomem *base, struct clk *clk)
{
int ret;
@@ -296,9 +296,9 @@ static void nxp_stm_clockevent_resume(struct clock_event_device *ced)
nxp_stm_module_get(stm_timer);
}
-static int __init nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
- const char *name, void __iomem *base, int irq,
- struct clk *clk, int cpu)
+static int nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer *stm_timer,
+ const char *name, void __iomem *base, int irq,
+ struct clk *clk, int cpu)
{
stm_timer->base = base;
stm_timer->rate = clk_get_rate(clk);
@@ -386,7 +386,7 @@ static irqreturn_t nxp_stm_module_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static int __init nxp_stm_timer_probe(struct platform_device *pdev)
+static int nxp_stm_timer_probe(struct platform_device *pdev)
{
struct stm_timer *stm_timer;
struct device *dev = &pdev->dev;
@@ -482,14 +482,14 @@ static const struct of_device_id nxp_stm_of_match[] = {
};
MODULE_DEVICE_TABLE(of, nxp_stm_of_match);
-static struct platform_driver nxp_stm_probe = {
+static struct platform_driver nxp_stm_driver = {
.probe = nxp_stm_timer_probe,
.driver = {
.name = "nxp-stm",
.of_match_table = nxp_stm_of_match,
},
};
-module_platform_driver(nxp_stm_probe);
+module_platform_driver(nxp_stm_driver);
MODULE_DESCRIPTION("NXP System Timer Module driver");
MODULE_LICENSE("GPL");
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-11-26 14:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17 5:49 [PATCH] clocksource/drivers/stm: Fix section mismatches Johan Hovold
2025-10-20 9:32 ` Johan Hovold
2025-10-20 9:39 ` Greg KH
2025-10-20 9:44 ` Johan Hovold
2025-11-05 13:32 ` Daniel Lezcano
2025-11-10 14:51 ` Johan Hovold
2025-11-12 9:57 ` Daniel Lezcano
2025-11-12 10:58 ` Johan Hovold
2025-11-12 15:22 ` Daniel Lezcano
2025-11-26 14:40 ` [tip: timers/clocksource] clocksource/drivers/nxp-stm: " tip-bot2 for Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).