Skip to content

Commit

Permalink
iio: adc: cf_axi_adc_core: make sure dt nodes are released
Browse files Browse the repository at this point in the history
of_parse_phandle() increased the node refcount which means we
need to "release" it when done with it.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed May 3, 2023
1 parent 0cb605b commit 19ff231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/cf_axi_adc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 19ff231

Please sign in to comment.