summaryrefslogtreecommitdiffstats
path: root/LICENSES/exceptions
diff options
context:
space:
mode:
authorJi Sheng Teoh <jisheng.teoh@starfivetech.com>2024-01-19 09:27:21 +0100
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-03-03 14:17:28 +0100
commit8bc22a2f1bf0f402029087fcb53130233a544fed (patch)
tree4b784644b26581cfa2e4113ef85502478faaeaa0 /LICENSES/exceptions
parentwatchdog: qcom: fine tune the max timeout value calculation (diff)
downloadlinux-8bc22a2f1bf0f402029087fcb53130233a544fed.tar.xz
linux-8bc22a2f1bf0f402029087fcb53130233a544fed.zip
watchdog: starfive: Check pm_runtime_enabled() before decrementing usage counter
In the probe function, pm_runtime_put_sync() will fail on platform with runtime PM disabled. Check if runtime PM is enabled before calling pm_runtime_put_sync() to fix it. Fixes: db728ea9c7be ("drivers: watchdog: Add StarFive Watchdog driver") Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com> Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20240119082722.1133024-1-jisheng.teoh@starfivetech.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'LICENSES/exceptions')
0 files changed, 0 insertions, 0 deletions