regulator: adp5055: remove duplicate device table
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Apr 2025 14:09:58 +0000 (16:09 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 10 Apr 2025 14:12:44 +0000 (15:12 +0100)
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>
Link: https://patch.msgid.link/20250410141006.866813-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/adp5055-regulator.c

index ad8e42cb1f3f4259f853a17b5e52c3d1ec8ca1b6..59648499196ff794b2072ce79c8e777877fa9657 100644 (file)
@@ -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;