]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/thermal/mtk_thermal.c
thermal: mtk_thermal: Check return value of devm_thermal_zone_of_sensor_register
authorAxel Lin <axel.lin@ingics.com>
Wed, 7 Sep 2016 09:24:52 +0000 (17:24 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
commit1f6b0889d0ea03541be03ccfc8d07deadae98283
tree649d9f8bcb146c28778879bbf826c53c3fc18b11
parentb7cf0053738c5491df532a625321e976eaa93b22
thermal: mtk_thermal: Check return value of devm_thermal_zone_of_sensor_register

devm_thermal_zone_of_sensor_register can fail, so check it's return value.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/mtk_thermal.c