diff options
Diffstat (limited to 'kernel/drivers/pinctrl/sh-pfc/pinctrl.c')
-rw-r--r-- | kernel/drivers/pinctrl/sh-pfc/pinctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/pinctrl/sh-pfc/pinctrl.c b/kernel/drivers/pinctrl/sh-pfc/pinctrl.c index 863c3e30c..50f2014fe 100644 --- a/kernel/drivers/pinctrl/sh-pfc/pinctrl.c +++ b/kernel/drivers/pinctrl/sh-pfc/pinctrl.c @@ -483,7 +483,8 @@ static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, switch (param) { case PIN_CONFIG_BIAS_DISABLE: - return true; + return pin->configs & + (SH_PFC_PIN_CFG_PULL_UP | SH_PFC_PIN_CFG_PULL_DOWN); case PIN_CONFIG_BIAS_PULL_UP: return pin->configs & SH_PFC_PIN_CFG_PULL_UP; |