mediatek: convert driver to .remove_new
Convert driver to .remove_new in preparation for kernel 6.12 support. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18535 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
8de9174816
commit
0adbac6c17
1 changed files with 2 additions and 4 deletions
|
@ -283,17 +283,15 @@ static int rtk_gsw_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtk_gsw_remove(struct platform_device *pdev)
|
static void rtk_gsw_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
platform_set_drvdata(pdev, NULL);
|
platform_set_drvdata(pdev, NULL);
|
||||||
gsw_debug_proc_exit();
|
gsw_debug_proc_exit();
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver gsw_driver = {
|
static struct platform_driver gsw_driver = {
|
||||||
.probe = rtk_gsw_probe,
|
.probe = rtk_gsw_probe,
|
||||||
.remove = rtk_gsw_remove,
|
.remove_new = rtk_gsw_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rtk-gsw",
|
.name = "rtk-gsw",
|
||||||
.of_match_table = rtk_gsw_match,
|
.of_match_table = rtk_gsw_match,
|
||||||
|
|
Loading…
Reference in a new issue