summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@free-electrons.com>2017-09-26 15:52:18 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-09 22:49:42 +0300
commitb0a242894f11d2a357a77e0eedebb16477151ddd (patch)
tree02a8f7c5850e75934bc7c8874ea38783e3ddbdf5 /include/linux/stackprotector.h
parentd632a2bd8ffc3541bf300100d6f553e89fd0eb11 (diff)
downloadlinux-b0a242894f11d2a357a77e0eedebb16477151ddd.tar.xz
iio: adc: sun4i-gpadc-iio: register in the thermal after registering in pm
This driver has a get_temp function used by the thermal framework that uses pm functions. However, the driver isn't registered in pm before it is registered in thermal framework, resulting in the pm_resume not being called and thus the IP not enabled. When the IP is disabled, the raw temp value is always 0. With the devices currently supported, it isn't a problem since with their respective formula, they return a really cold SoC temperature which isn't a problem for the thermal framework. But for future SoC that have a different formula, it could return a critically hot temperature, forcing the thermal framework to shutdown the board. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions