004-register_gpio_driver_earlier.patch 542 B

123456789101112131415161718
  1. HACK: register the GPIO driver earlier to ensure that gpio_request calls
  2. from mach files succeed.
  3. --- a/drivers/gpio/gpio-ath79.c
  4. +++ b/drivers/gpio/gpio-ath79.c
  5. @@ -202,7 +202,11 @@ static struct platform_driver ath79_gpio
  6. .probe = ath79_gpio_probe,
  7. };
  8. -module_platform_driver(ath79_gpio_driver);
  9. +static int __init ath79_gpio_init(void)
  10. +{
  11. + return platform_driver_register(&ath79_gpio_driver);
  12. +}
  13. +postcore_initcall(ath79_gpio_init);
  14. MODULE_DESCRIPTION("Atheros AR71XX/AR724X/AR913X GPIO API support");
  15. MODULE_LICENSE("GPL v2");