This patch clear pinctrl state before running pinctrl_force_sleep.
By clearing pinctrl state, we can avoid warning log in pinmux_disable_setting().
Change-Id: I08035b77064d8fc7690989ba1f58ef0f71029ec3
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
if (!drvdata->suspend)
return -EINVAL;
+ if (!IS_ERR(drvdata->pctl_dev->p)) {
+ /* This is ignore to disable mux configuration. */
+ drvdata->pctl_dev->p->state = NULL;
+ }
+
ret = pinctrl_force_sleep(drvdata->pctl_dev);
if (ret)
dev_err(drvdata->dev, "could not set sleep pinstate %d\n", ret);