ASoC: hdac_hdmi: use devm_kzalloc for all structures
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 8 Feb 2019 23:26:53 +0000 (17:26 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 11 Feb 2019 16:01:59 +0000 (16:01 +0000)
commitc7ba4e5396fbe998502390e4fc7935163b189c50
tree5b508c17914f4ee40921d43bc1b75a9c9902c59f
parent49ff8cfb1755a6bb7d4f1645f9346962fb4e473e
ASoC: hdac_hdmi: use devm_kzalloc for all structures

Loading/unloading modules exposes issues with memory allocation, which
is a mix of devm_kzalloc and manual kzalloc. Move to devm_k routines
everywhere to simplify all this.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c