Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44978760 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "thermal: adc-tm: Ensure valid match data is obtained"

parents e7b04640 10cd1eb2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -214,6 +214,9 @@ static int adc_tm_get_dt_data(struct platform_device *pdev,
		return -EINVAL;

	id = of_match_node(adc_tm_match_table, node);
	if (!id)
		return -EINVAL;

	adc_tm->data = id->data;

	adc_tm->ops = adc_tm->data->ops;