aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/ti-aemif.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-12-05 09:36:14 +0100
committerGuenter Roeck <linux@roeck-us.net>2017-12-26 11:53:24 -0800
commit47c332deb8e89f6c59b0bb2615945c6e7fad1a60 (patch)
tree86b585de3fcba6bde939ade2c22631d3e4ba5555 /drivers/memory/ti-aemif.c
parent464e1d5f23cca236b930ef068c328a64cab78fb1 (diff)
downloadlinux-47c332deb8e89f6c59b0bb2615945c6e7fad1a60.tar.gz
hwmon: Deal with errors from the thermal subsystem
If the thermal subsystem returne -EPROBE_DEFER or any other error when hwmon calls devm_thermal_zone_of_sensor_register(), this is silently ignored. I ran into this with an incorrectly defined thermal zone, making it non-existing and thus this call failed with -EPROBE_DEFER assuming it would appear later. The sensor was still added which is incorrect: sensors must strictly be added after the thermal zones, so deferred probe must be respected. Fixes: d560168b5d0f ("hwmon: (core) New hwmon registration API") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/memory/ti-aemif.c')
0 files changed, 0 insertions, 0 deletions