Skip to content

Commit

Permalink
[centec][arm64] fix tsingma bsp compile error (sonic-net#12774)
Browse files Browse the repository at this point in the history
fix centec arm64 tsingma bsp compile error caused by linux kernel api change
  • Loading branch information
LuiSzee authored and mssonicbld committed Dec 6, 2022
1 parent f1fa8a6 commit fa31cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/centec-arm64/tsingma-bsp/src/ctc_wdt/ctc_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ static int ctc_wdt_probe(struct amba_device *adev, const struct amba_id *id)
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)
Expand Down

0 comments on commit fa31cac

Please sign in to comment.