summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-12-05 23:16:35 +0100
committerSudeep Holla <sudeep.holla@arm.com>2018-02-23 16:12:25 +0100
commitcd6f0602d2950efb488290571c2ae2ca92befe53 (patch)
tree9729e8eb28e09b47b48ad8b77091b21450cd4b02 /drivers/firmware
parentLinux 4.16-rc1 (diff)
downloadlinux-cd6f0602d2950efb488290571c2ae2ca92befe53.tar.xz
linux-cd6f0602d2950efb488290571c2ae2ca92befe53.zip
firmware: arm_scpi: remove two unneeded devm_kfree's in scpi_remove
Both memory areas are free'd anyway when the device is destroyed, so we don't have to do it manually. Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/arm_scpi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index 7da9f1b83ebe..2a30d255e750 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -918,8 +918,6 @@ static int scpi_remove(struct platform_device *pdev)
kfree(info->dvfs[i]->opps);
kfree(info->dvfs[i]);
}
- devm_kfree(dev, info->channels);
- devm_kfree(dev, info);
return 0;
}