diff options
author | Pavel Machek <pavel@ucw.cz> | 2020-09-25 11:24:12 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2020-09-30 18:53:27 +0200 |
commit | e8b7dabc6565d9bf74e66312cf7b8b87450c7caa (patch) | |
tree | 335ea5692386bd59564f26f76ee488b8c2a75759 /drivers/leds/leds-tca6507.c | |
parent | 96f524105b9c62904b8452dff2c2531a84e44e2c (diff) | |
download | linux-stable-e8b7dabc6565d9bf74e66312cf7b8b87450c7caa.tar.gz linux-stable-e8b7dabc6565d9bf74e66312cf7b8b87450c7caa.tar.bz2 linux-stable-e8b7dabc6565d9bf74e66312cf7b8b87450c7caa.zip |
leds: tca6507: fix warning triggered by fwnode conversion.
Robot complains about:
All warnings (new ones prefixed by >>):
>> drivers/leds/leds-tca6507.c:750:34: warning: unused variable
'of_tca6507_leds_match' [-Wunused-const-variable]
static const struct of_device_id of_tca6507_leds_match[] = {
Fix it.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-tca6507.c')
-rw-r--r-- | drivers/leds/leds-tca6507.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c index 3e01fe2510f7..4b10ef9ae221 100644 --- a/drivers/leds/leds-tca6507.c +++ b/drivers/leds/leds-tca6507.c @@ -747,7 +747,7 @@ tca6507_led_dt_init(struct i2c_client *client) return pdata; } -static const struct of_device_id of_tca6507_leds_match[] = { +static const struct of_device_id __maybe_unused of_tca6507_leds_match[] = { { .compatible = "ti,tca6507", }, {}, }; |