Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: adp5055: remove duplicate device table

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>

authored by

Arnd Bergmann and committed by
Mark Brown
28cce24d 48e6872b

-6
-6
drivers/regulator/adp5055-regulator.c
··· 343 343 ADP5055_REG("buck2", 2, 2), 344 344 }; 345 345 346 - static const struct of_device_id adp5055_dt_ids[] = { 347 - { .compatible = "adi,adp5055"}, 348 - { } 349 - }; 350 - MODULE_DEVICE_TABLE(of, adp5055_dt_ids); 351 - 352 346 static int adp5055_probe(struct i2c_client *client) 353 347 { 354 348 struct regulator_init_data *init_data;