From: Sachin Kamat Date: Tue, 14 May 2013 16:04:13 +0000 (+0530) Subject: [SCSI] ufs: Remove redundant platform_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~5775^2~89 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=123f87758658285f5f844d7e8a8b974ce88d1ffc;p=firefly-linux-kernel-4.4.55.git [SCSI] ufs: Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Signed-off-by: Santosh Y Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 03319acd9c72..3db2ee1a38bd 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -184,7 +184,6 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev) mem_size = resource_size(mem_res); release_mem_region(mem_res->start, mem_size); } - platform_set_drvdata(pdev, NULL); return 0; }