]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl: imx-es8328: add missing put_device() call in imx_es8328_probe()
authorYu Kuai <yukuai3@huawei.com>
Tue, 25 Aug 2020 13:02:24 +0000 (21:02 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Sep 2020 14:50:12 +0000 (15:50 +0100)
commitf17f595fd139f90b52ec8069d17ecf4494ede3b3
treeb2d327bd20e65f130aa8a61f6a28a742d2eb06d6
parente50f23f44fc1ee0e4bccee26329008e596a20fa0
ASoC: fsl: imx-es8328: add missing put_device() call in imx_es8328_probe()

if of_find_device_by_node() succeed, imx_es8328_probe() doesn't have
a corresponding put_device(). Thus add a jump target to fix the exception
handling for this function implementation.

Fixes: 93a1d2c61a64 ("ASoC: fsl: add imx-es8328 machine driver")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200825130224.1488694-1-yukuai3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-es8328.c