return err;
 }
 
-static int lan966x_remove(struct platform_device *pdev)
+static void lan966x_remove(struct platform_device *pdev)
 {
        struct lan966x *lan966x = platform_get_drvdata(pdev);
 
        lan966x_ptp_deinit(lan966x);
 
        debugfs_remove_recursive(lan966x->debugfs_root);
-
-       return 0;
 }
 
 static struct platform_driver lan966x_driver = {
        .probe = lan966x_probe,
-       .remove = lan966x_remove,
+       .remove_new = lan966x_remove,
        .driver = {
                .name = "lan966x-switch",
                .of_match_table = lan966x_match,
 
        return err;
 }
 
-static int mchp_sparx5_remove(struct platform_device *pdev)
+static void mchp_sparx5_remove(struct platform_device *pdev)
 {
        struct sparx5 *sparx5 = platform_get_drvdata(pdev);
 
        /* Unregister netdevs */
        sparx5_unregister_notifier_blocks(sparx5);
        destroy_workqueue(sparx5->mact_queue);
-
-       return 0;
 }
 
 static const struct of_device_id mchp_sparx5_match[] = {
 
 static struct platform_driver mchp_sparx5_driver = {
        .probe = mchp_sparx5_probe,
-       .remove = mchp_sparx5_remove,
+       .remove_new = mchp_sparx5_remove,
        .driver = {
                .name = "sparx5-switch",
                .of_match_table = mchp_sparx5_match,