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

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

Fix below warning when CONFIG_OF=n:

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

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

authored by

Jisheng Zhang and committed by
Mark Brown
dc8c5ea3 7bf0a29c

+1 -1
+1 -1
drivers/regulator/pwm-regulator.c
··· 390 390 return 0; 391 391 } 392 392 393 - static const struct of_device_id pwm_of_match[] = { 393 + static const struct of_device_id __maybe_unused pwm_of_match[] = { 394 394 { .compatible = "pwm-regulator" }, 395 395 { }, 396 396 };