--- zzzz-none-000/linux-3.10.107/drivers/watchdog/cpwd.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/watchdog/cpwd.c 2021-02-04 17:41:59.000000000 +0000 @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -621,7 +620,7 @@ WD_BADMODEL); } - dev_set_drvdata(&op->dev, p); + platform_set_drvdata(op, p); cpwd_device = p; err = 0; @@ -642,7 +641,7 @@ static int cpwd_remove(struct platform_device *op) { - struct cpwd *p = dev_get_drvdata(&op->dev); + struct cpwd *p = platform_get_drvdata(op); int i; for (i = 0; i < WD_NUMDEVS; i++) { @@ -680,7 +679,6 @@ static struct platform_driver cpwd_driver = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = cpwd_match, }, .probe = cpwd_probe,