From: Thomas Fourier <fourier.thomas@gmail.com>
Cc: Thomas Fourier <fourier.thomas@gmail.com>,
Brian Cain <bcain@kernel.org>, Thomas Gleixner <tglx@kernel.org>,
linux-hexagon@vger.kernel.org (open list:QUALCOMM HEXAGON
ARCHITECTURE), linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] hexagon: time: prevent release of not requested region
Date: Thu, 26 Nov 2026 11:49:07 +0100 [thread overview]
Message-ID: <20261126104914.32285-2-fourier.thomas@gmail.com> (raw)
time_init_deferred() calls release_mem_region() on region
rtos_timer_device.resource which is rtos_timer_resources which is
statically defined.
Drop the release_mem_region().
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
---
arch/hexagon/kernel/time.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c
index 05c5d6c96d96..b6d844b2c1ef 100644
--- a/arch/hexagon/kernel/time.c
+++ b/arch/hexagon/kernel/time.c
@@ -175,9 +175,6 @@ static void __init time_init_deferred(void)
/* ioremap here means this has to run later, after paging init */
rtos_timer = ioremap(resource->start, resource_size(resource));
- if (!rtos_timer) {
- release_mem_region(resource->start, resource_size(resource));
- }
clocksource_register_khz(&hexagon_clocksource, pcycle_freq_mhz * 1000);
/* Note: the sim generic RTOS clock is apparently really 18750Hz */
--
2.53.0
reply other threads:[~2026-11-26 10:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126104914.32285-2-fourier.thomas@gmail.com \
--to=fourier.thomas@gmail.com \
--cc=bcain@kernel.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®