diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2022-04-22 06:26:41 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-22 12:37:36 +0100 |
commit | cc470d55343056d6b2a5c32e10e0aad06f324078 (patch) | |
tree | 433d33dd88ae92898ce18e69e080cb40bb7e30b9 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c2b5a40c9e50651a29ee9d110f7ebc41b8720efa (diff) |
spi: img-spfi: Fix pm_runtime_get_sync() error checking
If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1, so a test for negative
value should be used to check for errors.
Fixes: deba25800a12b ("spi: Add driver for IMG SPFI controller")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20220422062641.10486-1-zhengyongjun3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions