diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-12 20:51:22 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-01-16 15:03:08 +0100 |
commit | ef4290e6bd99149d21c99bb4905c61f8c94a05ca (patch) | |
tree | 6e748e680e74616a953f2d49dd6f818af31ced48 /drivers/pinctrl/sunplus | |
parent | a3fc976a2d68cb74ae4234314002e4e398e4c337 (diff) |
pinctrl: sunplus: sppctl: Remove duplicate assignment of of_gpio_n_cells
The of_gpio_n_cells default is 2 when ->of_xlate() callback is
not defined. No need to assign it explicitly in the driver.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230112185122.45216-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunplus')
-rw-r--r-- | drivers/pinctrl/sunplus/sppctl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/sunplus/sppctl.c b/drivers/pinctrl/sunplus/sppctl.c index 2b3335ab56c6..392625a2723e 100644 --- a/drivers/pinctrl/sunplus/sppctl.c +++ b/drivers/pinctrl/sunplus/sppctl.c @@ -556,7 +556,6 @@ static int sppctl_gpio_new(struct platform_device *pdev, struct sppctl_pdata *pc gchip->base = -1; gchip->ngpio = sppctl_gpio_list_sz; gchip->names = sppctl_gpio_list_s; - gchip->of_gpio_n_cells = 2; pctl->pctl_grange.npins = gchip->ngpio; pctl->pctl_grange.name = gchip->label; |