diff options
| author | 2016-03-22 22:22:41 +0530 | |
|---|---|---|
| committer | 2016-03-28 07:30:36 -0700 | |
| commit | f90272f432f7515044d9e13a6fa2c8bf1ac14838 (patch) | |
| tree | efefb22e9b3979b92e562621bf14f1eadb241b07 /scripts/stackusage | |
| parent | staging: rtl8188eu: os_dep: ioctl_linux: Clean up tests if NULL returned on failure (diff) | |
staging: media: omap1: Replace clk_get with devm_clk_get
devm_clk_get allocated resources get released when a driver detaches.
Replace clk_get with devm_clk_get and remove corresponding data
releasing function clk_put from probe and remove functions of a
platform device. Also remove an unnecessary label.
This change was made with the help of the following Coccinelle
semantic patch:
@platform@
identifier p, probefn, removefn;
@@
struct platform_driver p = {
.probe = probefn,
.remove = removefn,
};
@prb@
identifier platform.probefn, pdev;
expression e;
@@
probefn(struct platform_device *pdev, ...) {
...
e =
- clk_get
+ devm_clk_get
(...);
...
?- clk_put(...);
...
}
@remove depends on prb@
identifier platform.removefn;
@@
removefn(...) {
...
?- clk_put(...);
...
}
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
