From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH 3/4] at91: ddramc: Trivial code cleanup
Date: Wed, 5 Mar 2025 09:21:00 +0300 [thread overview]
Message-ID: <20250305062101.25588-3-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20250305062101.25588-1-eagle.alexander923@gmail.com>
Trivial code cleanup, which includes:
- Adding/removing blank lines for better code readability.
- Wrapping the of_compatible driver property in DRV_OF_COMPAT().
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/mach-at91/ddramc.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-at91/ddramc.c b/arch/arm/mach-at91/ddramc.c
index ca77889ecc..ffedd39d6b 100644
--- a/arch/arm/mach-at91/ddramc.c
+++ b/arch/arm/mach-at91/ddramc.c
@@ -22,6 +22,7 @@ static unsigned sama5_ramsize(void __iomem *base)
void __noreturn sama5d2_barebox_entry(unsigned int r4, void *boarddata)
{
__sama5d2_stashed_bootrom_r4 = r4;
+
barebox_arm_entry(SAMA5_DDRCS, sama5_ramsize(SAMA5D2_BASE_MPDDRC),
boarddata);
}
@@ -33,6 +34,7 @@ void __noreturn sama5d3_barebox_entry(unsigned int r4, void *boarddata)
barebox_arm_entry(SAMA5_DDRCS, sama5_ramsize(IOMEM(SAMA5D3_BASE_MPDDRC)),
boarddata);
}
+
void __noreturn sama5d4_barebox_entry(unsigned int r4, void *boarddata)
{
__sama5d4_stashed_bootrom_r4 = r4;
@@ -54,7 +56,7 @@ static int sama5_ddr_probe(struct device *dev)
return arm_add_mem_device("ram0", SAMA5_DDRCS, sama5_ramsize(base));
}
-static struct of_device_id sama5_ddr_dt_ids[] = {
+static __maybe_unused struct of_device_id sama5_ddr_dt_ids[] = {
{ .compatible = "atmel,sama5d3-ddramc" },
{ /* sentinel */ }
};
@@ -63,7 +65,6 @@ MODULE_DEVICE_TABLE(of, sama5_ddr_dt_ids);
static struct driver sama5_ddr_driver = {
.name = "sama5-ddramc",
.probe = sama5_ddr_probe,
- .of_compatible = sama5_ddr_dt_ids,
+ .of_compatible = DRV_OF_COMPAT(sama5_ddr_dt_ids),
};
-
mem_platform_driver(sama5_ddr_driver);
--
2.39.1
next prev parent reply other threads:[~2025-03-05 8:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 6:20 [PATCH 1/4] at91:: Remove dead definition of atmel_nand_load_image() Alexander Shiyan
2025-03-05 6:20 ` [PATCH 2/4] at91: Use the ddramc driver for all boards whose architecture uses it Alexander Shiyan
2025-03-07 8:18 ` Sascha Hauer
2025-03-07 8:24 ` Alexander Shiyan
2025-03-05 6:21 ` Alexander Shiyan [this message]
2025-03-05 6:21 ` [PATCH 4/4] at91: Use proper values of stashed SAMA5D2/3/4 bootsource Alexander Shiyan
2025-03-07 8:20 ` (subset) [PATCH 1/4] at91:: Remove dead definition of atmel_nand_load_image() Sascha Hauer
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=20250305062101.25588-3-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=barebox@lists.infradead.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