diff --git a/package/kernel/ubootenv-nvram/src/ubootenv-nvram.c b/package/kernel/ubootenv-nvram/src/ubootenv-nvram.c index 106e41231c9..ba1d7973f18 100644 --- a/package/kernel/ubootenv-nvram/src/ubootenv-nvram.c +++ b/package/kernel/ubootenv-nvram/src/ubootenv-nvram.c @@ -132,18 +132,17 @@ static int ubootenv_probe(struct platform_device *pdev) return misc_register(&data->misc); } -static int ubootenv_remove(struct platform_device *pdev) +static void ubootenv_remove(struct platform_device *pdev) { struct ubootenv_drvdata *data = platform_get_drvdata(pdev); data->env = NULL; misc_deregister(&data->misc); - return 0; } static struct platform_driver ubootenv_driver = { .probe = ubootenv_probe, - .remove = ubootenv_remove, + .remove_new = ubootenv_remove, .driver = { .name = NAME, .of_match_table = of_ubootenv_match,