-
由 Alexandre Torgue 提交于
This commit adds a check on ops pointer to avoid a kernel panic when ops->strict is used. Indeed, on some pinctrl driver (at least for pinctrl-stmfx) the pinmux ops is not implemented. Let's assume than gpio can be used in this case. Fixes: 472a61e7 ("pinctrl/gpio: Take MUX usage into account") Signed-off-by: NAlexandre Torgue <alexandre.torgue@st.com> Link: https://lore.kernel.org/r/20191204144106.10876-1-alexandre.torgue@st.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
6ba2fd39