Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: phy: mv-usb: 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 <sachin.kamat@linaro.org>
Cc: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Sachin Kamat and committed by
Felipe Balbi
c21b7eea a9b1bddc

-3
-3
drivers/usb/phy/phy-mv-usb.c
··· 667 667 mv_otg_disable(mvotg); 668 668 669 669 usb_remove_phy(&mvotg->phy); 670 - platform_set_drvdata(pdev, NULL); 671 670 672 671 return 0; 673 672 } ··· 848 849 err_destroy_workqueue: 849 850 flush_workqueue(mvotg->qwork); 850 851 destroy_workqueue(mvotg->qwork); 851 - 852 - platform_set_drvdata(pdev, NULL); 853 852 854 853 return retval; 855 854 }