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: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220510124749.2663874-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e1c9f68aa2
commit
9d62ba9426
@ -467,8 +467,7 @@ static int spdif_remove(struct platform_device *pdev)
|
||||
iounmap(spdif->regs);
|
||||
|
||||
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->pclk);
|
||||
|
Loading…
Reference in New Issue
Block a user