staging: media: omap4iss: Remove unnecessary platform_set_drvdata()

Author: Amitoj Kaur Chawla <>

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:
struct platform_device *pdev;
- platform_set_drvdata(pdev, NULL);

Signed-off-by: Amitoj Kaur Chawla 
Signed-off-by: Greg Kroah-Hartman 
 drivers/staging/media/omap4iss/iss.c | 2 --
 1 file changed, 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:
-	platform_set_drvdata(pdev, NULL);
 	return ret;