mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 20:03:33 -04:00
Merge "thermal: adc-tm: Ensure valid match data is obtained"
This commit is contained in:
commit
44978760c1
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue