projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
regulator: sy8827n: Fix W=1 build warning when CONFIG_OF=n
[linux-2.6-microblaze.git]
/
drivers
/
regulator
/
sy8827n.c
diff --git
a/drivers/regulator/sy8827n.c
b/drivers/regulator/sy8827n.c
index
b207217
..
52e8c17
100644
(file)
--- 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", },