soundwire: stream: simplify sdw_alloc_master_rt()
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 26 Jan 2022 01:17:05 +0000 (09:17 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Feb 2022 06:45:37 +0000 (12:15 +0530)
commit1a21892d59b985f634371fa9ce4c8b4f4a286f87
tree3abc8d4a7a5021b81e45e43e5db8cf08852dabe5
parentc7aa9d770e23ab295ce45729a6134833426e1473
soundwire: stream: simplify sdw_alloc_master_rt()

Only do the allocation in that function, and move check for allocation
in the caller. This will it easier to split allocation and
configuration.

No functionality change in this patch.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220126011715.28204-10-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c