summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/aspeed_adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/aspeed_adc.c')
-rw-r--r--drivers/iio/adc/aspeed_adc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/aspeed_adc.c b/drivers/iio/adc/aspeed_adc.c
index 0793d2474cdc..9341e0e0eb55 100644
--- a/drivers/iio/adc/aspeed_adc.c
+++ b/drivers/iio/adc/aspeed_adc.c
@@ -186,6 +186,7 @@ static int aspeed_adc_set_trim_data(struct iio_dev *indio_dev)
return -EOPNOTSUPP;
}
scu = syscon_node_to_regmap(syscon);
+ of_node_put(syscon);
if (IS_ERR(scu)) {
dev_warn(data->dev, "Failed to get syscon regmap\n");
return -EOPNOTSUPP;