Skip to content

Commit 28cce24

Browse files
arndbbroonie
authored andcommitted
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: 147b2a9 ("regulator: adp5055: Add driver for adp5055") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 48e6872 commit 28cce24

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/regulator/adp5055-regulator.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,6 @@ static struct regulator_desc adp5055_regulators[] = {
343343
ADP5055_REG("buck2", 2, 2),
344344
};
345345

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-
352346
static int adp5055_probe(struct i2c_client *client)
353347
{
354348
struct regulator_init_data *init_data;

0 commit comments

Comments
 (0)