diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-05-21 11:01:41 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2020-05-25 09:55:46 +0300 |
commit | a22573740d93f31c30b57a40b334a1ec6b789f67 (patch) | |
tree | 771b223c9d8badc68ae70a3215f8bbca0f2c9a16 /drivers/watchdog/m54xx_wdt.c | |
parent | 5e31896a33c5ad5ad5c533e6bdff6510d136b1ef (diff) | |
download | linux-a22573740d93f31c30b57a40b334a1ec6b789f67.tar.xz |
watchdog: Fix runtime PM imbalance on error
When watchdog_register_device() returns an error code,
a pairing runtime PM usage counter decrement is needed
to keep the counter balanced.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200521080141.24373-1-dinghao.liu@zju.edu.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/m54xx_wdt.c')
0 files changed, 0 insertions, 0 deletions