--- zzzz-none-000/linux-3.10.107/arch/powerpc/platforms/83xx/suspend.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/platforms/83xx/suspend.c 2021-02-04 17:41:59.000000000 +0000 @@ -10,7 +10,6 @@ * by the Free Software Foundation. */ -#include #include #include #include @@ -20,6 +19,8 @@ #include #include #include +#include +#include #include #include @@ -320,7 +321,7 @@ .end = mpc83xx_suspend_end, }; -static struct of_device_id pmc_match[]; +static const struct of_device_id pmc_match[]; static int pmc_probe(struct platform_device *ofdev) { const struct of_device_id *match; @@ -419,7 +420,7 @@ } }; -static struct of_device_id pmc_match[] = { +static const struct of_device_id pmc_match[] = { { .compatible = "fsl,mpc8313-pmc", .data = &pmc_types[0], @@ -434,7 +435,6 @@ static struct platform_driver pmc_driver = { .driver = { .name = "mpc83xx-pmc", - .owner = THIS_MODULE, .of_match_table = pmc_match, }, .probe = pmc_probe, @@ -445,5 +445,4 @@ { return platform_driver_register(&pmc_driver); } - -module_init(pmc_init); +device_initcall(pmc_init);