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

Configure Feed

Select the types of activity you want to include in your feed.

regulator: mp8859: Mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/regulator/mp8859.c:132:34: error: ‘mp8859_dt_id’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230310214553.275450-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
334e6b85 4a585086

+1 -1
+1 -1
drivers/regulator/mp8859.c
··· 129 129 return 0; 130 130 } 131 131 132 - static const struct of_device_id mp8859_dt_id[] = { 132 + static const struct of_device_id mp8859_dt_id[] __maybe_unused = { 133 133 {.compatible = "mps,mp8859"}, 134 134 {}, 135 135 };