aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pinctrl/pinconf-generic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index dcf03714de90..ea9da1752252 100644
--- a/drivers/pinctrl/pinconf-generic.c
+++ b/drivers/pinctrl/pinconf-generic.c
@@ -208,6 +208,13 @@ int pinconf_generic_parse_dt_config(struct device_node *np,
208 ncfg++; 208 ncfg++;
209 } 209 }
210 210
211 /* no configs found at all */
212 if (ncfg == 0) {
213 *configs = NULL;
214 *nconfigs = 0;
215 return 0;
216 }
217
211 /* 218 /*
212 * Now limit the number of configs to the real number of 219 * Now limit the number of configs to the real number of
213 * found properties. 220 * found properties.