Skip to content

Commit 4db3207

Browse files
andy-shevbroonie
authored andcommitted
ASoC: ti: davinci-mcasp: Get rid of duplicate of_node assignment
GPIO library does copy the of_node from the parent device of the GPIO chip, there is no need to repeat this in the individual drivers. Remove assignment here. For the details one may look into the of_gpio_dev_init() implementation. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com> Link: https://lore.kernel.org/r/20211202205612.76216-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 766cc7f commit 4db3207

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sound/soc/ti/davinci-mcasp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,9 +2230,6 @@ static int davinci_mcasp_init_gpiochip(struct davinci_mcasp *mcasp)
22302230
mcasp->gpio_chip = davinci_mcasp_template_chip;
22312231
mcasp->gpio_chip.label = dev_name(mcasp->dev);
22322232
mcasp->gpio_chip.parent = mcasp->dev;
2233-
#ifdef CONFIG_OF_GPIO
2234-
mcasp->gpio_chip.of_node = mcasp->dev->of_node;
2235-
#endif
22362233

22372234
return devm_gpiochip_add_data(mcasp->dev, &mcasp->gpio_chip, mcasp);
22382235
}

0 commit comments

Comments
 (0)