soundwire: intel: simplify flow and use devm_ for DAI registration
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 19 Sep 2022 17:57:12 +0000 (01:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 05:09:22 +0000 (10:39 +0530)
commit54f391dd1b9fc34b37fc1824f9bd24430167f683
treeba48ce31b0c230b2e389f9a5873479c67b83e566
parentc6867cda906aadbce5e71efde9c78a26108b2bad
soundwire: intel: simplify flow and use devm_ for DAI registration

We already use devm_ for memory allocation but not for component/DAI
registration. The resource management can be based on devm_ in all
cases.

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/20220919175721.354679-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c