]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: ti: davinci-mcasp: Get rid of duplicate of_node assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Dec 2021 20:56:11 +0000 (22:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Dec 2021 13:49:28 +0000 (13:49 +0000)
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>
sound/soc/ti/davinci-mcasp.c

index 56a19eeec5c7fef68942bd6ed137725fc0a28846..81c1ccec59040ca31f582a4c4748271b2a907f4c 100644 (file)
@@ -2230,9 +2230,6 @@ static int davinci_mcasp_init_gpiochip(struct davinci_mcasp *mcasp)
        mcasp->gpio_chip = davinci_mcasp_template_chip;
        mcasp->gpio_chip.label = dev_name(mcasp->dev);
        mcasp->gpio_chip.parent = mcasp->dev;
-#ifdef CONFIG_OF_GPIO
-       mcasp->gpio_chip.of_node = mcasp->dev->of_node;
-#endif
 
        return devm_gpiochip_add_data(mcasp->dev, &mcasp->gpio_chip, mcasp);
 }