]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Add missing error code in devfreq_add_device()
authorYueHaibing <yuehaibing@huawei.com>
Fri, 14 May 2021 06:48:43 +0000 (14:48 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 20 May 2021 03:16:41 +0000 (12:16 +0900)
commit85c00d3a0c641807237d5b36d47ba29bb4e17dad
treec1a110fa09dd0ea22365ae33eadf1570faf17961
parentb55df23c2e521bfb647a826ad611b2a2f7954c63
PM / devfreq: Add missing error code in devfreq_add_device()

Set err code in the error path before jumping to the end of the function.

Fixes: f2628942f0dc ("PM / devfreq: Add support delayed timer for polling mode")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c