]> git.karo-electronics.de Git - linux-beck.git/commit
staging: media: omap4iss: Remove unnecessary platform_set_drvdata()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 25 Feb 2016 05:37:47 +0000 (11:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit3b7a3dac9204d1f1b5e7c314dbacb372a93b7c99
tree0ca953f783bc95d3827ee049a3fa1f92dd23e950
parent0df56d78d26ac1560bfe9ba65f354e50428ab525
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>
drivers/staging/media/omap4iss/iss.c