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:
parent
fdd74c3220
commit
8273b391c5
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue