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

Commit ffcf4c40 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

hwmon: qpnp-adc-voltage: Assign vadc_dev before registering TZ



The vadc_dev is used in qpnp_vadc_read() when registering the thermal
zone device. The NULL value would cause the qpnp_vadc_read() failed by
returning -EPROBE_DEFER or cause a kernel crash.

Change-Id: I47b88da9dc39bd3df8678a734206b29912b83718
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 13848461
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment