mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 18:07:03 +00:00
misc: sram: cleanup the code
Since the devm_gen_pool_create() is used, so the gen_pool_destroy() here is redundant. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5baaf71fb0
commit
590eca1e9f
@ -87,8 +87,6 @@ static int sram_remove(struct platform_device *pdev)
|
||||
if (gen_pool_avail(sram->pool) < gen_pool_size(sram->pool))
|
||||
dev_dbg(&pdev->dev, "removed while SRAM allocated\n");
|
||||
|
||||
gen_pool_destroy(sram->pool);
|
||||
|
||||
if (sram->clk)
|
||||
clk_disable_unprepare(sram->clk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user