diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2020-08-10 03:57:53 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-18 18:18:40 +0200 |
commit | a16138a32eeeca01e2603193288ff0714bead11d (patch) | |
tree | efdea9e8ac4ee9118112aa5e0b9ef8132a39ae88 /drivers/regulator | |
parent | regulator: da9211: add cache_type (diff) | |
download | linux-a16138a32eeeca01e2603193288ff0714bead11d.tar.xz linux-a16138a32eeeca01e2603193288ff0714bead11d.zip |
regulator: sy8827n: Fix W=1 build warning when CONFIG_OF=n
Fixing W=1 build warning when no support for device tree is there.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20200810095753.59ce9f75@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/sy8827n.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/sy8827n.c b/drivers/regulator/sy8827n.c index b207217f74d8..52e8c17afe24 100644 --- a/drivers/regulator/sy8827n.c +++ b/drivers/regulator/sy8827n.c @@ -156,6 +156,7 @@ static int sy8827n_i2c_probe(struct i2c_client *client) return ret; } +#ifdef CONFIG_OF static const struct of_device_id sy8827n_dt_ids[] = { { .compatible = "silergy,sy8827n", @@ -163,6 +164,7 @@ static const struct of_device_id sy8827n_dt_ids[] = { { } }; MODULE_DEVICE_TABLE(of, sy8827n_dt_ids); +#endif static const struct i2c_device_id sy8827n_id[] = { { "sy8827n", }, |