summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-09-30 10:48:29 -0700
committerSebastian Reichel <sre@kernel.org>2014-11-17 03:07:09 +0100
commit22ecd65f4067461f0488bc9b1f2c26eb70f69fa5 (patch)
tree49131451452ff8cb4aa3459892ebbc50aeecc7af /drivers/power
parentef288f9f656cdf46cb7788b6bb18da1c3b722feb (diff)
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.c1
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;
}