ASoC: da7219-aad: fix usage of device_get_named_child_node()

[ Upstream commit e8a6a5ad73acbafd98e8fd3f0cbf6e379771bb76 ]

The documentation for device_get_named_child_node() mentions this
important point:

"
The caller is responsible for calling fwnode_handle_put() on the
returned fwnode pointer.
"

Add fwnode_handle_put() to avoid a leaked reference.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240426153033.38500-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 6d2d2aaae1faa64c2f803d6f11f4b2df3b3c2cff)
[Vegard: fix conflict in context due to missing
 4510112217116d97df02121d3e1442858efb4897 ("ASoC:
 hdac_hdmi/nau8825/rt286/rt298/rt5663/da7219: replace codec to
 component") which changed devm_kzalloc(dev, ...) to
 devm_kzalloc(codec->dev, ...).]
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
1 file changed