kernel_samsung_a53x/sound/soc/intel/boards
Andy Shevchenko 6ff348e8ef ASoC: Intel: bytcr_rt5651: Drop reference count of ACPI device after use
[ Upstream commit 721858823d7cdc8f2a897579b040e935989f6f02 ]

Theoretically the device might gone if its reference count drops to 0.
This might be the case when we try to find the first physical node of
the ACPI device. We need to keep reference to it until we get a result
of the above mentioned call. Refactor the code to drop the reference
count at the correct place.

While at it, move to acpi_dev_put() as symmetrical call to the
acpi_dev_get_first_match_dev().

Fixes: 02c0a3b3047f ("ASoC: Intel: bytcr_rt5651: add MCLK, quirks and cleanups")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230112112852.67714-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 22:25:35 +01:00
..
bdw-rt5650.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bdw-rt5677.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadwell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bxt_da7219_max98357a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bxt_rt298.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bytcht_cx2072x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bytcht_da7213.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bytcht_es8316.c ASoC: Intel: boards: get codec device with ACPI instead of bus search 2024-11-18 22:25:35 +01:00
bytcht_nocodec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bytcr_rt5640.c ASoC: Intel: boards: get codec device with ACPI instead of bus search 2024-11-18 22:25:35 +01:00
bytcr_rt5651.c ASoC: Intel: bytcr_rt5651: Drop reference count of ACPI device after use 2024-11-18 22:25:35 +01:00
cht_bsw_max98090_ti.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cht_bsw_nau8824.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cht_bsw_rt5645.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cht_bsw_rt5672.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cml_rt1011_rt5682.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ehl_rt5660.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
glk_rt5682_max98357a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
haswell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hda_dsp_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hda_dsp_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kbl_da7219_max98357a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kbl_da7219_max98927.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kbl_rt5660.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kbl_rt5663_max98927.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kbl_rt5663_rt5514_max98927.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_hda_dsp_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_hda_dsp_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_hda_dsp_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_nau88l25_max98357a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_nau88l25_ssm4567.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skl_rt286.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_da7219_max98373.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_maxim_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_maxim_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_pcm512x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_rt5682.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_dmic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_hdmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_max98373.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt700.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt711.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt711_sdca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt715.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt715_sdca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt1308.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt1316.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_sdw_rt5682.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof_wm8804.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00