340-register_gpio_driver_earlier.patch 783 B

1234567891011121314151617181920212223242526
  1. From: John Crispin <[email protected]>
  2. Subject: ath79: Register GPIO driver earlier
  3. HACK: register the GPIO driver earlier to ensure that gpio_request calls
  4. from mach files succeed.
  5. Submitted-by: John Crispin <[email protected]>
  6. ---
  7. drivers/gpio/gpio-ath79.c | 6 +++++-
  8. 1 file changed, 5 insertions(+), 1 deletion(-)
  9. --- a/drivers/gpio/gpio-ath79.c
  10. +++ b/drivers/gpio/gpio-ath79.c
  11. @@ -297,7 +297,11 @@ static struct platform_driver ath79_gpio
  12. .probe = ath79_gpio_probe,
  13. };
  14. -module_platform_driver(ath79_gpio_driver);
  15. +static int __init ath79_gpio_init(void)
  16. +{
  17. + return platform_driver_register(&ath79_gpio_driver);
  18. +}
  19. +postcore_initcall(ath79_gpio_init);
  20. MODULE_DESCRIPTION("Atheros AR71XX/AR724X/AR913X GPIO API support");
  21. MODULE_LICENSE("GPL v2");