[centec][arm64] fix tsingma bsp compile error (#12774)

fix centec arm64 tsingma bsp compile error caused by linux kernel api change
This commit is contained in:
LuiSzee 2022-12-04 15:05:59 +08:00 committed by mssonicbld
parent f1fa8a6c8e
commit fa31cac213

View File

@ -345,14 +345,14 @@ err:
return ret;
}
static int ctc_wdt_remove(struct amba_device *adev)
static void ctc_wdt_remove(struct amba_device *adev)
{
struct ctc_wdt *wdt = amba_get_drvdata(adev);
watchdog_unregister_device(&wdt->wdd);
watchdog_set_drvdata(&wdt->wdd, NULL);
return 0;
return;
}
static int __maybe_unused ctc_wdt_suspend(struct device *dev)