mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
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>
This commit is contained in:
parent
a3fc976a2d
commit
ef4290e6bd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user