pinctrl: mcp23s08: Drop assignment of default number of OF cells
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Aug 2022 17:58:50 +0000 (20:58 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Sep 2022 22:17:35 +0000 (00:17 +0200)
The GPIO library code will assign default value for number of OF
cells, no need to repeat this in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220830175850.44770-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c

index 6952366..5f356ed 100644 (file)
@@ -549,9 +549,6 @@ int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
        mcp->chip.get = mcp23s08_get;
        mcp->chip.direction_output = mcp23s08_direction_output;
        mcp->chip.set = mcp23s08_set;
-#ifdef CONFIG_OF_GPIO
-       mcp->chip.of_gpio_n_cells = 2;
-#endif
 
        mcp->chip.base = base;
        mcp->chip.can_sleep = true;