mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-06 23:52:34 +07:00
gpio: rcar: Remove #gpio-range-cells DT property usage
Commit a1bc260bb5
("gpio: clean up
gpio-ranges documentation") deprecated the #gpio-range-cells property.
Replace its usage with a hardcoded value in the gpio-rcar driver.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
parent
7cd402b30a
commit
01eb2d18fd
@ -293,10 +293,9 @@ static void gpio_rcar_parse_pdata(struct gpio_rcar_priv *p)
|
|||||||
if (pdata) {
|
if (pdata) {
|
||||||
p->config = *pdata;
|
p->config = *pdata;
|
||||||
} else if (IS_ENABLED(CONFIG_OF) && np) {
|
} else if (IS_ENABLED(CONFIG_OF) && np) {
|
||||||
ret = of_parse_phandle_with_args(np, "gpio-ranges",
|
ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, 0,
|
||||||
"#gpio-range-cells", 0, &args);
|
&args);
|
||||||
p->config.number_of_pins = ret == 0 && args.args_count == 3
|
p->config.number_of_pins = ret == 0 ? args.args[2]
|
||||||
? args.args[2]
|
|
||||||
: RCAR_MAX_GPIO_PER_BANK;
|
: RCAR_MAX_GPIO_PER_BANK;
|
||||||
p->config.gpio_base = -1;
|
p->config.gpio_base = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user