From 19ff231f7056749948757251edb2a793ecd7263d Mon Sep 17 00:00:00 2001 From: Nuno Sa Date: Wed, 26 Apr 2023 14:14:56 +0200 Subject: [PATCH] iio: adc: cf_axi_adc_core: make sure dt nodes are released of_parse_phandle() increased the node refcount which means we need to "release" it when done with it. Signed-off-by: Nuno Sa --- drivers/iio/adc/cf_axi_adc_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/cf_axi_adc_core.c b/drivers/iio/adc/cf_axi_adc_core.c index 25a427d34fa110..d3d83304990117 100644 --- a/drivers/iio/adc/cf_axi_adc_core.c +++ b/drivers/iio/adc/cf_axi_adc_core.c @@ -1105,6 +1105,7 @@ static int axiadc_probe(struct platform_device *pdev) ret = bus_for_each_dev(&spi_bus_type, NULL, &axiadc_spidev, axiadc_attach_spi_client); + of_node_put(axiadc_spidev->of_nspi); if (ret == 0) return -EPROBE_DEFER;