diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-02-25 05:37:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 06:09:09 (GMT) |
commit | 3b7a3dac9204d1f1b5e7c314dbacb372a93b7c99 (patch) | |
tree | 0ca953f783bc95d3827ee049a3fa1f92dd23e950 | |
parent | 0df56d78d26ac1560bfe9ba65f354e50428ab525 (diff) | |
download | linux-3b7a3dac9204d1f1b5e7c314dbacb372a93b7c99.tar.xz |
staging: media: omap4iss: Remove unnecessary platform_set_drvdata()
Unnecessary platform_set_drvdata() has been removed since the driver
core clears the driver data to NULL after device release or on
probe failure. There is no need to manually clear the device
driver data to NULL.
The Coccinelle semantic patch used to make this change is as follows:
//<smpl>
@@
struct platform_device *pdev;
@@
- platform_set_drvdata(pdev, NULL);
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/media/omap4iss/iss.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c index 30b473c..dea67d9 100644 --- a/drivers/staging/media/omap4iss/iss.c +++ b/drivers/staging/media/omap4iss/iss.c @@ -1527,8 +1527,6 @@ error_modules: error_iss: omap4iss_put(iss); error: - platform_set_drvdata(pdev, NULL); - mutex_destroy(&iss->iss_mutex); return ret; |