soundwire: stream: remove bus->dev from logs on multiple buses
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 22 Mar 2023 03:55:23 +0000 (11:55 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 10:00:36 +0000 (15:30 +0530)
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>
drivers/soundwire/stream.c

index 136b6850a3f062f8f373f0372ec11ce6ea69c533..f903394ff2cf1b09eccf7c8cc92ff54a400478ca 100644 (file)
@@ -1389,7 +1389,7 @@ program_params:
 
        ret = do_bank_switch(stream);
        if (ret < 0) {
-               dev_err(bus->dev, "Bank switch failed: %d\n", ret);
+               pr_err("Bank switch failed: %d\n", ret);
                goto restore_params;
        }
 
@@ -1497,7 +1497,7 @@ static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
 
        ret = do_bank_switch(stream);
        if (ret < 0) {
-               dev_err(bus->dev, "Bank switch failed: %d\n", ret);
+               pr_err("Bank switch failed: %d\n", ret);
                return ret;
        }