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