Skip to content

Commit e226cb1

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: davinci: 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 92bf78b commit e226cb1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpio-davinci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
252252
chips->chip.base = pdata->no_auto_base ? pdata->base : -1;
253253

254254
#ifdef CONFIG_OF_GPIO
255-
chips->chip.of_gpio_n_cells = 2;
256255
chips->chip.parent = dev;
257256
chips->chip.request = gpiochip_generic_request;
258257
chips->chip.free = gpiochip_generic_free;

0 commit comments

Comments
 (0)