--- zzzz-none-000/linux-3.10.107/drivers/watchdog/ks8695_wdt.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/watchdog/ks8695_wdt.c 2021-02-04 17:41:59.000000000 +0000 @@ -254,13 +254,10 @@ static int ks8695wdt_remove(struct platform_device *pdev) { - int res; + misc_deregister(&ks8695wdt_miscdev); + ks8695wdt_miscdev.parent = NULL; - res = misc_deregister(&ks8695wdt_miscdev); - if (!res) - ks8695wdt_miscdev.parent = NULL; - - return res; + return 0; } static void ks8695wdt_shutdown(struct platform_device *pdev) @@ -296,7 +293,6 @@ .resume = ks8695wdt_resume, .driver = { .name = "ks8695_wdt", - .owner = THIS_MODULE, }, }; @@ -323,5 +319,4 @@ MODULE_AUTHOR("Andrew Victor"); MODULE_DESCRIPTION("Watchdog driver for KS8695"); MODULE_LICENSE("GPL"); -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); MODULE_ALIAS("platform:ks8695_wdt");