1 HACK: register the GPIO driver earlier to ensure that gpio_request calls
2 from mach files succeed.
4 Index: linux-4.14.18/drivers/gpio/gpio-ath79.c
5 ===================================================================
6 --- linux-4.14.18.orig/drivers/gpio/gpio-ath79.c
7 +++ linux-4.14.18/drivers/gpio/gpio-ath79.c
8 @@ -322,7 +322,11 @@ static struct platform_driver ath79_gpio
9 .remove = ath79_gpio_remove,
12 -module_platform_driver(ath79_gpio_driver);
13 +static int __init ath79_gpio_init(void)
15 + return platform_driver_register(&ath79_gpio_driver);
17 +postcore_initcall(ath79_gpio_init);
19 MODULE_DESCRIPTION("Atheros AR71XX/AR724X/AR913X GPIO API support");
20 MODULE_LICENSE("GPL v2");