summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sram.c
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-01-15 11:16:35 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 15:10:19 -0800
commit590eca1e9f10b7ddf97718c6c4c12c73d0fd0083 (patch)
tree42a5f0b24b7fe0e70a06f40a52481a64af72fb69 /drivers/misc/sram.c
parent5baaf71fb029f1256532b82aab90169615b94a7d (diff)
downloadop-kernel-dev-590eca1e9f10b7ddf97718c6c4c12c73d0fd0083.zip
op-kernel-dev-590eca1e9f10b7ddf97718c6c4c12c73d0fd0083.tar.gz
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>
Diffstat (limited to 'drivers/misc/sram.c')
-rw-r--r--drivers/misc/sram.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index afe66571..e3e421d 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -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);
OpenPOWER on IntegriCloud