linux-stable/drivers/soundwire
Shreyas NC c22c0ae523 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: 9d715fa005: ("soundwire: Add IO transfer")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-09 17:01:16 +01:00
..
bus.c soundwire: Fix incorrect return value check 2018-01-09 17:01:16 +01:00
bus.h soundwire: Add slave status handling 2017-12-19 11:28:13 +01:00
bus_type.c soundwire: Add MIPI DisCo property helpers 2017-12-19 11:14:57 +01:00
cadence_master.c soundwire: cdns: Add sdw_master_ops and IO transfer support 2017-12-19 11:31:33 +01:00
cadence_master.h soundwire: cdns: Add sdw_master_ops and IO transfer support 2017-12-19 11:31:33 +01:00
intel.c soundwire: intel: fix missing assignment to ret 2018-01-08 17:53:21 +01:00
intel.h soundwire: intel: Add Intel Master driver 2017-12-19 11:32:02 +01:00
intel_init.c soundwire: intel: Add Intel init module 2017-12-19 11:32:35 +01:00
Kconfig soundwire: intel: Add Intel Master driver 2017-12-19 11:32:02 +01:00
Makefile soundwire: intel: Add Intel init module 2017-12-19 11:32:35 +01:00
mipi_disco.c soundwire: Add MIPI DisCo property helpers 2017-12-19 11:14:57 +01:00
slave.c