--- zzzz-none-000/linux-3.10.107/drivers/mtd/nand/pasemi_nand.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mtd/nand/pasemi_nand.c 2021-02-04 17:41:59.000000000 +0000 @@ -23,11 +23,12 @@ #undef DEBUG #include -#include #include #include #include #include +#include +#include #include #include #include @@ -123,7 +124,7 @@ /* Link the private data with the MTD structure */ pasemi_nand_mtd->priv = chip; - pasemi_nand_mtd->owner = THIS_MODULE; + pasemi_nand_mtd->dev.parent = &ofdev->dev; chip->IO_ADDR_R = of_iomap(np, 0); chip->IO_ADDR_W = chip->IO_ADDR_R; @@ -221,8 +222,7 @@ static struct platform_driver pasemi_nand_driver = { .driver = { - .name = (char*)driver_name, - .owner = THIS_MODULE, + .name = driver_name, .of_match_table = pasemi_nand_match, }, .probe = pasemi_nand_probe,