return ret;
 }
 
-static int hip04_remove(struct platform_device *pdev)
+static void hip04_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
        struct hip04_priv *priv = netdev_priv(ndev);
        of_node_put(priv->phy_node);
        cancel_work_sync(&priv->tx_timeout_task);
        free_netdev(ndev);
-
-       return 0;
 }
 
 static const struct of_device_id hip04_mac_match[] = {
 
 static struct platform_driver hip04_mac_driver = {
        .probe  = hip04_mac_probe,
-       .remove = hip04_remove,
+       .remove_new = hip04_remove,
        .driver = {
                .name           = DRV_NAME,
                .of_match_table = hip04_mac_match,
 
        return ret;
 }
 
-static int hisi_femac_drv_remove(struct platform_device *pdev)
+static void hisi_femac_drv_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
        struct hisi_femac_priv *priv = netdev_priv(ndev);
        phy_disconnect(ndev->phydev);
        clk_disable_unprepare(priv->clk);
        free_netdev(ndev);
-
-       return 0;
 }
 
 #ifdef CONFIG_PM
                .of_match_table = hisi_femac_match,
        },
        .probe = hisi_femac_drv_probe,
-       .remove = hisi_femac_drv_remove,
+       .remove_new = hisi_femac_drv_remove,
 #ifdef CONFIG_PM
        .suspend = hisi_femac_drv_suspend,
        .resume = hisi_femac_drv_resume,
 
        return ret;
 }
 
-static int hix5hd2_dev_remove(struct platform_device *pdev)
+static void hix5hd2_dev_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
        struct hix5hd2_priv *priv = netdev_priv(ndev);
        of_node_put(priv->phy_node);
        cancel_work_sync(&priv->tx_timeout_task);
        free_netdev(ndev);
-
-       return 0;
 }
 
 static const struct of_device_id hix5hd2_of_match[] = {
                .of_match_table = hix5hd2_of_match,
        },
        .probe = hix5hd2_dev_probe,
-       .remove = hix5hd2_dev_remove,
+       .remove_new = hix5hd2_dev_remove,
 };
 
 module_platform_driver(hix5hd2_dev_driver);
 
  * hns_dsaf_remove - remove dsaf dev
  * @pdev: dasf platform device
  */
-static int hns_dsaf_remove(struct platform_device *pdev)
+static void hns_dsaf_remove(struct platform_device *pdev)
 {
        struct dsaf_device *dsaf_dev = dev_get_drvdata(&pdev->dev);
 
        hns_dsaf_free(dsaf_dev);
 
        hns_dsaf_free_dev(dsaf_dev);
-
-       return 0;
 }
 
 static const struct of_device_id g_dsaf_match[] = {
 
 static struct platform_driver g_dsaf_driver = {
        .probe = hns_dsaf_probe,
-       .remove = hns_dsaf_remove,
+       .remove_new = hns_dsaf_remove,
        .driver = {
                .name = DSAF_DRV_NAME,
                .of_match_table = g_dsaf_match,
 
        return ret;
 }
 
-static int hns_nic_dev_remove(struct platform_device *pdev)
+static void hns_nic_dev_remove(struct platform_device *pdev)
 {
        struct net_device *ndev = platform_get_drvdata(pdev);
        struct hns_nic_priv *priv = netdev_priv(ndev);
        of_node_put(to_of_node(priv->fwnode));
 
        free_netdev(ndev);
-       return 0;
 }
 
 static const struct of_device_id hns_enet_of_match[] = {
                .acpi_match_table = ACPI_PTR(hns_enet_acpi_match),
        },
        .probe = hns_nic_dev_probe,
-       .remove = hns_nic_dev_remove,
+       .remove_new = hns_nic_dev_remove,
 };
 
 module_platform_driver(hns_nic_dev_driver);
 
  *
  * Return 0 on success, negative on failure
  */
-static int hns_mdio_remove(struct platform_device *pdev)
+static void hns_mdio_remove(struct platform_device *pdev)
 {
        struct mii_bus *bus;
 
 
        mdiobus_unregister(bus);
        platform_set_drvdata(pdev, NULL);
-       return 0;
 }
 
 static const struct of_device_id hns_mdio_match[] = {
 
 static struct platform_driver hns_mdio_driver = {
        .probe = hns_mdio_probe,
-       .remove = hns_mdio_remove,
+       .remove_new = hns_mdio_remove,
        .driver = {
                   .name = MDIO_DRV_NAME,
                   .of_match_table = hns_mdio_match,