diff options
author | Shreyas NC <shreyas.nc@intel.com> | 2018-01-09 05:45:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 17:01:16 +0100 |
commit | c22c0ae5232e2280a12cdf389fdc557b83c5b968 (patch) | |
tree | 79b313c0d24c30799a84a781f4b0ce16cfc3a073 /drivers/mfd/axp20x.c | |
parent | soundwire: Add Pierre as reviewer (diff) | |
download | linux-c22c0ae5232e2280a12cdf389fdc557b83c5b968.tar.xz linux-c22c0ae5232e2280a12cdf389fdc557b83c5b968.zip |
soundwire: Fix incorrect return value check
pm_runtime_get_sync will return negative values for error
and 0 or 1 for success. Update the error check accordingly.
Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 9d715fa005eb: ("soundwire: Add IO transfer")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/axp20x.c')
0 files changed, 0 insertions, 0 deletions