diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-04-12 08:32:02 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-10 16:01:48 +0300 |
commit | a2fa9242e89f27696515699fe0f0296bf1ac1815 (patch) | |
tree | a328ed3606b783dad05713db5a1e4ef6cf11c319 /net | |
parent | 8edb79af88efc6e49e735f9baf61d9f0748b881f (diff) | |
download | linux-a2fa9242e89f27696515699fe0f0296bf1ac1815.tar.xz |
iio: proximity: pulsedlight: Fix rumtime PM imbalance on error
When lidar_write_control() fails, a pairing PM usage counter
decrement is needed to keep the counter balanced.
Fixes: 4ac4e086fd8c5 ("iio: pulsedlight-lidar-lite: add runtime PM")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210412053204.4889-1-dinghao.liu@zju.edu.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions