diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2017-12-06 01:16:35 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2018-02-23 18:12:25 +0300 |
commit | cd6f0602d2950efb488290571c2ae2ca92befe53 (patch) | |
tree | 9729e8eb28e09b47b48ad8b77091b21450cd4b02 /drivers/firmware | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-cd6f0602d2950efb488290571c2ae2ca92befe53.tar.xz |
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.c | 2 |
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; } |