Skip to content

Commit d014688

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: stream: remove bus->dev from logs on multiple buses
A stream may depend on multiple managers/buses, e.g. for the multiple amplifier case. It's incorrect to use bus->dev in this case. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230322035524.1509029-2-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 9cf1efc commit d014688

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/soundwire/stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
13891389

13901390
ret = do_bank_switch(stream);
13911391
if (ret < 0) {
1392-
dev_err(bus->dev, "Bank switch failed: %d\n", ret);
1392+
pr_err("Bank switch failed: %d\n", ret);
13931393
goto restore_params;
13941394
}
13951395

@@ -1497,7 +1497,7 @@ static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
14971497

14981498
ret = do_bank_switch(stream);
14991499
if (ret < 0) {
1500-
dev_err(bus->dev, "Bank switch failed: %d\n", ret);
1500+
pr_err("Bank switch failed: %d\n", ret);
15011501
return ret;
15021502
}
15031503

0 commit comments

Comments
 (0)