Skip to content

Commit a060dc6

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: wcd934x: 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 <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 9c8224d commit a060dc6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpio-wcd934x.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ static int wcd_gpio_probe(struct platform_device *pdev)
9898
chip->base = -1;
9999
chip->ngpio = WCD934X_NPINS;
100100
chip->label = dev_name(dev);
101-
chip->of_gpio_n_cells = 2;
102101
chip->can_sleep = false;
103102

104103
return devm_gpiochip_add_data(dev, chip, data);

0 commit comments

Comments
 (0)