soundwire: fix usages of device_get_named_child_node()
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 29 Apr 2024 00:49:35 +0000 (00:49 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 3 Jun 2024 12:05:24 +0000 (17:35 +0530)
commite2d8ea0a066a6db51f31efd2710057271d685d2e
treedd20651707452274d1ad52623c35ac69df4cb468
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
soundwire: fix usages of device_get_named_child_node()

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 leaked references.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240429004935.2400191-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/amd_manager.c
drivers/soundwire/intel_auxdevice.c
drivers/soundwire/mipi_disco.c