aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorDinghao Liu <[email protected]>2021-04-07 11:49:27 +0800
committerJonathan Cameron <[email protected]>2021-05-10 14:01:48 +0100
commit8edb79af88efc6e49e735f9baf61d9f0748b881f (patch)
tree19e7acdcafdbadc68cf106c8579c7d326ad22126 /tools/perf/scripts
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
iio: light: gp2ap002: Fix rumtime PM imbalance on error
When devm_request_threaded_irq() fails, we should decrease the runtime PM counter to keep the counter balanced. But when iio_device_register() fails, we need not to decrease it because we have already decreased it before. Signed-off-by: Dinghao Liu <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Fixes: 97d642e23037 ("iio: light: Add a driver for Sharp GP2AP002x00F") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions