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

regulator: fan53555: Fix W=1 build warning when CONFIG_OF=n

Fix below warning when CONFIG_OF=n:

drivers/regulator/fan53555.c:439:34: warning: ‘fan53555_dt_ids’ defined but not used [-Wunused-const-variable=]
439 | static const struct of_device_id fan53555_dt_ids[] = {
| ^~~~~~~~~~~~~~~

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20200821111324.430fe1da@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jisheng Zhang and committed by
Mark Brown
5e97d7e8 2d2a84ae

+1 -1
+1 -1
drivers/regulator/fan53555.c
··· 436 436 return pdata; 437 437 } 438 438 439 - static const struct of_device_id fan53555_dt_ids[] = { 439 + static const struct of_device_id __maybe_unused fan53555_dt_ids[] = { 440 440 { 441 441 .compatible = "fcs,fan53526", 442 442 .data = (void *)FAN53526_VENDOR_FAIRCHILD,