From fa31cac2137f3ace4f371e9103e10db9f08e9066 Mon Sep 17 00:00:00 2001 From: LuiSzee Date: Sun, 4 Dec 2022 15:05:59 +0800 Subject: [PATCH] [centec][arm64] fix tsingma bsp compile error (#12774) fix centec arm64 tsingma bsp compile error caused by linux kernel api change --- platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c b/platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c index 8cac376c0b..6a651434ea 100644 --- a/platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c +++ b/platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c @@ -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)