Skip to content

Commit 83b9e0f

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: ge: 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 e226cb1 commit 83b9e0f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpio-ge.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ static int __init gef_gpio_probe(struct platform_device *pdev)
8181

8282
gc->base = -1;
8383
gc->ngpio = (u16)(uintptr_t)of_device_get_match_data(&pdev->dev);
84-
gc->of_gpio_n_cells = 2;
8584

8685
/* This function adds a memory mapped GPIO chip */
8786
ret = devm_gpiochip_add_data(&pdev->dev, gc, NULL);

0 commit comments

Comments
 (0)