Commit 9d62ba94 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

ASoC: samsung: spdif: remove unnecessary check of mem_res

The resource is checked in probe function, so there is
no need do this check in remove function.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220510124749.2663874-1-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e1c9f68a
...@@ -467,7 +467,6 @@ static int spdif_remove(struct platform_device *pdev) ...@@ -467,7 +467,6 @@ static int spdif_remove(struct platform_device *pdev)
iounmap(spdif->regs); iounmap(spdif->regs);
mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (mem_res)
release_mem_region(mem_res->start, resource_size(mem_res)); release_mem_region(mem_res->start, resource_size(mem_res));
clk_disable_unprepare(spdif->sclk); clk_disable_unprepare(spdif->sclk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment