diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2017-09-29 23:44:01 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2017-10-04 12:09:45 +0200 |
commit | cfe8a9c9aaf47af3d9e6fe4c4b03f4a88844746d (patch) | |
tree | f65aaf6942720c5d116d07ca0140a048cc610be6 /drivers/firmware | |
parent | firmware: arm_scpi: remove usage of drvdata and don't reset scpi_info to null (diff) | |
download | linux-cfe8a9c9aaf47af3d9e6fe4c4b03f4a88844746d.tar.xz linux-cfe8a9c9aaf47af3d9e6fe4c4b03f4a88844746d.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.
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 a7f686e9dc1c..b99af7af64ff 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -910,8 +910,6 @@ static int scpi_remove(struct platform_device *pdev) kfree(scpi_info->dvfs[i]->opps); kfree(scpi_info->dvfs[i]); } - devm_kfree(dev, scpi_info->channels); - devm_kfree(dev, scpi_info); return 0; } |