diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-15 15:10:32 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-15 20:55:39 +0200 |
commit | 9c556fe73ea4d6edcddd08fbaf0fee27d810963f (patch) | |
tree | 9f147d9af552ba0ad40d199a5f267fbb11b80849 /target/linux/ar71xx | |
parent | 313474e6931805349a8224b6442c68ee162da458 (diff) | |
download | upstream-9c556fe73ea4d6edcddd08fbaf0fee27d810963f.tar.gz upstream-9c556fe73ea4d6edcddd08fbaf0fee27d810963f.tar.bz2 upstream-9c556fe73ea4d6edcddd08fbaf0fee27d810963f.zip |
ar71xx: register the gpio driver earlier
This allows gpio requests from mach files to succeed.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/patches-4.4/004-register_gpio_driver_earlier.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-4.4/004-register_gpio_driver_earlier.patch b/target/linux/ar71xx/patches-4.4/004-register_gpio_driver_earlier.patch new file mode 100644 index 0000000000..0c07cb18c7 --- /dev/null +++ b/target/linux/ar71xx/patches-4.4/004-register_gpio_driver_earlier.patch @@ -0,0 +1,15 @@ +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 +@@ -202,4 +202,8 @@ static struct platform_driver ath79_gpio + .probe = ath79_gpio_probe, + }; + +-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); |