This reverts commit 6c7e660a27da7494c670bfba21cfeba30457656c. The commit causes breakage on several older PXA machines.
Unified · Split
| @@ -642,7 +642,12 @@ static struct platform_driver pxa_gpio_driver = { · 641 unmodified lines | ||
| 642 | 642 | .of_match_table = of_match_ptr(pxa_gpio_dt_ids), |
| 643 | 643 | }, |
| 644 | 644 | }; |
| 645 | −module_platform_driver(pxa_gpio_driver); | |
| 645 | + | |
| 646 | +static int __init pxa_gpio_init(void) | |
| 647 | +{ | |
| 648 | + return platform_driver_register(&pxa_gpio_driver); | |
| 649 | +} | |
| 650 | +postcore_initcall(pxa_gpio_init); | |
| 646 | 651 | |
| 647 | 652 | #ifdef CONFIG_PM |
| 648 | 653 | static int pxa_gpio_suspend(void) |