From: Sachin Kamat Date: Mon, 6 May 2013 11:52:23 +0000 (+0530) Subject: usb: phy: nop: Remove redundant platform_set_drvdata() X-Git-Tag: accepted/tizen/common/20141203.182822~2193^2~26^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fe61203687a67eb1db338a4b7198a8037ca96c8;p=platform%2Fkernel%2Flinux-arm64.git usb: phy: nop: 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: Felipe Balbi --- diff --git a/drivers/usb/phy/phy-nop.c b/drivers/usb/phy/phy-nop.c index 2b10cc9..638cc5d 100644 --- a/drivers/usb/phy/phy-nop.c +++ b/drivers/usb/phy/phy-nop.c @@ -254,8 +254,6 @@ static int nop_usb_xceiv_remove(struct platform_device *pdev) usb_remove_phy(&nop->phy); - platform_set_drvdata(pdev, NULL); - return 0; }