diff options
author | Christoph Fritz <chf.fritz@googlemail.com> | 2020-07-07 12:57:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-07 14:50:46 +0200 |
commit | 318b8a09f295cbf86fd504bcff3769b1fc4a936b (patch) | |
tree | d5ef4c66bd7844cd60d2a1903962027c944d9c98 /drivers/regulator/fan53880.c | |
parent | Merge series "Add pca9450 driver" from Robin Gong <yibin.gong@nxp.com>: (diff) | |
download | linux-318b8a09f295cbf86fd504bcff3769b1fc4a936b.tar.xz linux-318b8a09f295cbf86fd504bcff3769b1fc4a936b.zip |
regulator: fan53880: Add support for COMPILE_TEST
This patch adds support for COMPILE_TEST while fixing a warning when
no support for device tree is there.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Link: https://lore.kernel.org/r/1c437154873ace65ff738a0ebca511308f1cecc1.camel@googlemail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/fan53880.c')
-rw-r--r-- | drivers/regulator/fan53880.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/fan53880.c b/drivers/regulator/fan53880.c index 575d289b8e04..e83eb4fb1876 100644 --- a/drivers/regulator/fan53880.c +++ b/drivers/regulator/fan53880.c @@ -155,11 +155,13 @@ static int fan53880_i2c_probe(struct i2c_client *i2c, return 0; } +#ifdef CONFIG_OF static const struct of_device_id fan53880_dt_ids[] = { { .compatible = "onnn,fan53880", }, {} }; MODULE_DEVICE_TABLE(of, fan53880_dt_ids); +#endif static const struct i2c_device_id fan53880_i2c_id[] = { { "fan53880", }, |