Commit ad027fa2 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Vinod Koul

soundwire: stream: remove unused parameter in sdw_stream_add_slave

The stream parameter is not used, remove before further simplifications.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220126011715.28204-2-yung-chuan.liao@linux.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 8733729e
...@@ -968,14 +968,12 @@ static struct sdw_master_runtime ...@@ -968,14 +968,12 @@ static struct sdw_master_runtime
* *
* @slave: Slave handle * @slave: Slave handle
* @stream_config: Stream configuration * @stream_config: Stream configuration
* @stream: Stream runtime handle
* *
* This function is to be called with bus_lock held. * This function is to be called with bus_lock held.
*/ */
static struct sdw_slave_runtime static struct sdw_slave_runtime
*sdw_alloc_slave_rt(struct sdw_slave *slave, *sdw_alloc_slave_rt(struct sdw_slave *slave,
struct sdw_stream_config *stream_config, struct sdw_stream_config *stream_config)
struct sdw_stream_runtime *stream)
{ {
struct sdw_slave_runtime *s_rt; struct sdw_slave_runtime *s_rt;
...@@ -1367,7 +1365,7 @@ int sdw_stream_add_slave(struct sdw_slave *slave, ...@@ -1367,7 +1365,7 @@ int sdw_stream_add_slave(struct sdw_slave *slave,
goto error; goto error;
} }
s_rt = sdw_alloc_slave_rt(slave, stream_config, stream); s_rt = sdw_alloc_slave_rt(slave, stream_config);
if (!s_rt) { if (!s_rt) {
dev_err(&slave->dev, dev_err(&slave->dev,
"Slave runtime config failed for stream:%s\n", "Slave runtime config failed for stream:%s\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment