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

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>

authored by

Jisheng Zhang and committed by
Mark Brown
a16138a3 989e08c3

+2
+2
drivers/regulator/sy8827n.c
··· 156 156 return ret; 157 157 } 158 158 159 + #ifdef CONFIG_OF 159 160 static const struct of_device_id sy8827n_dt_ids[] = { 160 161 { 161 162 .compatible = "silergy,sy8827n", ··· 164 163 { } 165 164 }; 166 165 MODULE_DEVICE_TABLE(of, sy8827n_dt_ids); 166 + #endif 167 167 168 168 static const struct i2c_device_id sy8827n_id[] = { 169 169 { "sy8827n", },