7bbf4117c6
This add support for kernel 4.9 to the ar71xx target. It was compile tested with the generic, NAND and mikrotik subtarget. Multiple members of the community tested it on their boards and did not report any major problem so far. Especially the NAND part received some changes to adapt to the new kernel APIs. The serial driver hack used for the Arduino Yun was not ported because the kernel changed there a lot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 lines
444 B
Diff
15 lines
444 B
Diff
HACK: register the GPIO driver earlier to ensure that gpio_request calls
|
|
from mach files succeed.
|
|
|
|
--- a/drivers/gpio/gpio-ath79.c
|
|
+++ b/drivers/gpio/gpio-ath79.c
|
|
@@ -322,4 +322,8 @@ static struct platform_driver ath79_gpio
|
|
.remove = ath79_gpio_remove,
|
|
};
|
|
|
|
-module_platform_driver(ath79_gpio_driver);
|
|
+static int __init ath79_gpio_init(void)
|
|
+{
|
|
+ return platform_driver_register(&ath79_gpio_driver);
|
|
+}
|
|
+postcore_initcall(ath79_gpio_init);
|