From: Arnd Bergmann <arnd@kernel.org>
To: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org
Subject: [PATCH] regulator: adp5055: remove duplicate device table
Date: Thu, 10 Apr 2025 16:09:58 +0200 [thread overview]
Message-ID: <20250410141006.866813-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
When building with -Wunused-const-variable, gcc points out an
device table that is not referenced anywhere:
drivers/regulator/adp5055-regulator.c:346:34: error: unused variable 'adp5055_dt_ids' [-Werror,-Wunused-const-variable]
346 | static const struct of_device_id adp5055_dt_ids[] = {
| ^~~~~~~~~~~~~~
The contents are the same as the second table in that file, so
just remove this copy.
Fixes: 147b2a96f24e ("regulator: adp5055: Add driver for adp5055")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/regulator/adp5055-regulator.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/regulator/adp5055-regulator.c b/drivers/regulator/adp5055-regulator.c
index ad8e42cb1f3f..59648499196f 100644
--- a/drivers/regulator/adp5055-regulator.c
+++ b/drivers/regulator/adp5055-regulator.c
@@ -343,12 +343,6 @@ static struct regulator_desc adp5055_regulators[] = {
ADP5055_REG("buck2", 2, 2),
};
-static const struct of_device_id adp5055_dt_ids[] = {
- { .compatible = "adi,adp5055"},
- { }
-};
-MODULE_DEVICE_TABLE(of, adp5055_dt_ids);
-
static int adp5055_probe(struct i2c_client *client)
{
struct regulator_init_data *init_data;
--
2.39.5
next reply other threads:[~2025-04-10 14:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 14:09 Arnd Bergmann [this message]
2025-04-11 7:14 ` [PATCH] regulator: adp5055: remove duplicate device table Mark Brown
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=20250410141006.866813-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=alexisczezar.torreno@analog.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.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