diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-12 19:43:40 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-01-16 15:01:28 +0100 |
commit | 0da58037aefcdc024a2bdad7d94cdf28f044a816 (patch) | |
tree | c6371e858dd663db93802ca9fffe681bfa3b6a58 /drivers/pinctrl/mediatek/pinctrl-paris.c | |
parent | pinctrl: samsung: Do not mention legacy API in the code (diff) | |
download | linux-0da58037aefcdc024a2bdad7d94cdf28f044a816.tar.xz linux-0da58037aefcdc024a2bdad7d94cdf28f044a816.zip |
pinctrl: mediatek: 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/20230112184340.79606-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-paris.c')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-paris.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c index 475f4172d508..17eead44b675 100644 --- a/drivers/pinctrl/mediatek/pinctrl-paris.c +++ b/drivers/pinctrl/mediatek/pinctrl-paris.c @@ -987,7 +987,6 @@ static int mtk_build_gpiochip(struct mtk_pinctrl *hw) chip->set_config = mtk_gpio_set_config; chip->base = -1; chip->ngpio = hw->soc->npins; - chip->of_gpio_n_cells = 2; ret = gpiochip_add_data(chip, hw); if (ret < 0) |