diff --git a/drivers/watchdog/loongson2_wdt.c b/drivers/watchdog/loongson2_wdt.c index 3648e8c1c..01cbc63a8 100644 --- a/drivers/watchdog/loongson2_wdt.c +++ b/drivers/watchdog/loongson2_wdt.c @@ -147,14 +147,12 @@ err0: return err; } -static int ls2x_wdt_remove(struct platform_device *pdev) +static void ls2x_wdt_remove(struct platform_device *pdev) { struct ls2x_wdt_drvdata *drvdata = platform_get_drvdata(pdev); watchdog_unregister_device(&drvdata->wdt); clk_disable_unprepare(drvdata->clk); - - return 0; } #ifdef CONFIG_OF