projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0012694
)
firmware: arm_scpi: remove two unneeded devm_kfree's in scpi_remove
author
Heiner Kallweit
<hkallweit1@gmail.com>
Fri, 29 Sep 2017 21:44:01 +0000
(23:44 +0200)
committer
Sudeep Holla
<sudeep.holla@arm.com>
Wed, 4 Oct 2017 10:09:45 +0000
(11:09 +0100)
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>
drivers/firmware/arm_scpi.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/arm_scpi.c
b/drivers/firmware/arm_scpi.c
index
a7f686e
..
b99af7a
100644
(file)
--- 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;
}