diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-03-11 00:45:45 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 17:08:57 +0300 |
commit | 70b26bb55f719e2900404459128d41c8425c8dde (patch) | |
tree | 30e398d947fb7e5d6d443e7b166dba48be9f5a8a /drivers/regulator/lp872x.c | |
parent | b9d0bb8f1c2e5dce9b8a54fb77d1af4aa64a4c01 (diff) | |
download | linux-70b26bb55f719e2900404459128d41c8425c8dde.tar.xz |
regulator: lp872x: Mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data
unused:
drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ 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-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/lp872x.c')
-rw-r--r-- | drivers/regulator/lp872x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index b5d83a63991b..26ed989460c0 100644 --- a/drivers/regulator/lp872x.c +++ b/drivers/regulator/lp872x.c @@ -927,7 +927,7 @@ static int lp872x_probe(struct i2c_client *cl) return lp872x_regulator_register(lp); } -static const struct of_device_id lp872x_dt_ids[] = { +static const struct of_device_id lp872x_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8720", }, { .compatible = "ti,lp8725", }, { } |