From: Sachin Kamat Date: Fri, 17 May 2013 09:51:18 +0000 (+0530) Subject: usb: chipidea: ci13xxx_imx: Remove redundant platform_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~5847^2~122 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b342f0969be9291d71bd8d5142d1b7f6fe9ffc3e;p=firefly-linux-kernel-4.4.55.git usb: chipidea: ci13xxx_imx: 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 Cc: Marek Vasut Cc: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/chipidea/ci13xxx_imx.c b/drivers/usb/chipidea/ci13xxx_imx.c index 8faec9dbbb84..b8ad556c1496 100644 --- a/drivers/usb/chipidea/ci13xxx_imx.c +++ b/drivers/usb/chipidea/ci13xxx_imx.c @@ -251,8 +251,6 @@ static int ci13xxx_imx_remove(struct platform_device *pdev) clk_disable_unprepare(data->clk); - platform_set_drvdata(pdev, NULL); - return 0; }