diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-09-30 19:48:29 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-11-17 03:07:09 +0100 |
commit | 22ecd65f4067461f0488bc9b1f2c26eb70f69fa5 (patch) | |
tree | 49131451452ff8cb4aa3459892ebbc50aeecc7af /drivers/power | |
parent | power/reset: xgene: Return -ENOMEM if out of memory (diff) | |
download | linux-22ecd65f4067461f0488bc9b1f2c26eb70f69fa5.tar.xz linux-22ecd65f4067461f0488bc9b1f2c26eb70f69fa5.zip |
power/reset: xgene: Drop devm_kfree
Calling devm_kfree is unnecessary. Drop it.
Cc: Loc Ho <lho@apm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/reset/xgene-reboot.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/reset/xgene-reboot.c b/drivers/power/reset/xgene-reboot.c index 6ca4bf99bbdd..c49a3fee65e7 100644 --- a/drivers/power/reset/xgene-reboot.c +++ b/drivers/power/reset/xgene-reboot.c @@ -66,7 +66,6 @@ static int xgene_reboot_probe(struct platform_device *pdev) ctx->csr = of_iomap(pdev->dev.of_node, 0); if (!ctx->csr) { - devm_kfree(&pdev->dev, ctx); dev_err(&pdev->dev, "can not map resource\n"); return -ENODEV; } |