pinctrl: rockchip: a pin unrouted is invalid

Change-Id: I706b23277f33768fc7c8bcfd06e6417fe3e8a0db
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu 2020-11-12 19:55:18 +08:00 committed by Jianhong Chen
parent fdd74c3220
commit 8273b391c5
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin)
if (bank->iomux[iomux_num].type & IOMUX_UNROUTED) { if (bank->iomux[iomux_num].type & IOMUX_UNROUTED) {
debug("pin %d is unrouted\n", pin); debug("pin %d is unrouted\n", pin);
return 0; return -ENOTSUPP;
} }
if (bank->iomux[iomux_num].type & IOMUX_GPIO_ONLY) if (bank->iomux[iomux_num].type & IOMUX_GPIO_ONLY)