diff options
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
| -rw-r--r-- | drivers/usb/cdns3/cdns3-plat.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/drivers/usb/cdns3/cdns3-plat.c b/drivers/usb/cdns3/cdns3-plat.c index 2bc5d094548b..884e2301237f 100644 --- a/drivers/usb/cdns3/cdns3-plat.c +++ b/drivers/usb/cdns3/cdns3-plat.c @@ -175,7 +175,7 @@ err_phy3_init:   *   * Returns 0 on success otherwise negative errno   */ -static int cdns3_plat_remove(struct platform_device *pdev) +static void cdns3_plat_remove(struct platform_device *pdev)  {  	struct cdns *cdns = platform_get_drvdata(pdev);  	struct device *dev = cdns->dev; @@ -187,7 +187,6 @@ static int cdns3_plat_remove(struct platform_device *pdev)  	set_phy_power_off(cdns);  	phy_exit(cdns->usb2_phy);  	phy_exit(cdns->usb3_phy); -	return 0;  }  #ifdef CONFIG_PM @@ -320,7 +319,7 @@ MODULE_DEVICE_TABLE(of, of_cdns3_match);  static struct platform_driver cdns3_driver = {  	.probe		= cdns3_plat_probe, -	.remove		= cdns3_plat_remove, +	.remove_new	= cdns3_plat_remove,  	.driver		= {  		.name	= "cdns-usb3",  		.of_match_table	= of_match_ptr(of_cdns3_match), | 
