[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250410141006.866813-1-arnd@kernel.org>
Date: Thu, 10 Apr 2025 16:09:58 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Alexis Czezar Torreno <alexisczezar.torreno@...log.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>,
linux-kernel@...r.kernel.org
Subject: [PATCH] regulator: adp5055: remove duplicate device table
From: Arnd Bergmann <arnd@...db.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@...db.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
Powered by blists - more mailing lists