]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/drivers/tsens: Fix missing put_device error
authorGuangqing Zhu <zhuguangqing83@gmail.com>
Sun, 4 Apr 2021 12:54:31 +0000 (20:54 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 5 Apr 2021 22:37:46 +0000 (00:37 +0200)
commite462c144a663cf3e2dd7579f19d9e5e3d56c7ec9
tree8e59a9071ccd2b3cbdf67ef119520b7bb04b4100
parent62158cf9765ff81229135fc8bc12f5377706c09f
thermal/drivers/tsens: Fix missing put_device error

Fixes coccicheck error:

drivers/thermal/qcom/tsens.c:759:4-10: ERROR: missing put_device; call
of_find_device_by_node on line 715, but without a corresponding object
release within this function.

Fixes: a7ff82976122 ("drivers: thermal: tsens: Merge tsens-common.c into tsens.c")
Signed-off-by: Guangqing Zhu <zhuguangqing83@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210404125431.12208-1-zhuguangqing83@gmail.com
drivers/thermal/qcom/tsens.c