Skip to content

Commit 981440b

Browse files
committed
soundwire: qcom: return error when pm_runtime_get_sync fails
For some reason there's a missing error return in two places. Fixes: 74e79da ("soundwire: qcom: add runtime pm support") Fixes: 04d46a7 ("soundwire: qcom: add in-band wake up interrupt support") Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 7a172b5 commit 981440b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/soundwire/qcom.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ static irqreturn_t qcom_swrm_wake_irq_handler(int irq, void *dev_id)
516516
"pm_runtime_get_sync failed in %s, ret %d\n",
517517
__func__, ret);
518518
pm_runtime_put_noidle(swrm->dev);
519+
return ret;
519520
}
520521

521522
if (swrm->wake_irq > 0) {
@@ -1258,6 +1259,7 @@ static int swrm_reg_show(struct seq_file *s_file, void *data)
12581259
"pm_runtime_get_sync failed in %s, ret %d\n",
12591260
__func__, ret);
12601261
pm_runtime_put_noidle(swrm->dev);
1262+
return ret;
12611263
}
12621264

12631265
for (reg = 0; reg <= SWR_MSTR_MAX_REG_ADDR; reg += 4) {

0 commit comments

Comments
 (0)