iproute2: add ip-tiny, ip-full as alternatives of /sbin/ip
[openwrt/staging/yousong.git] / target / linux / ar71xx / patches-4.4 / 004-register_gpio_driver_earlier.patch
1 HACK: register the GPIO driver earlier to ensure that gpio_request calls
2 from mach files succeed.
3
4 --- a/drivers/gpio/gpio-ath79.c
5 +++ b/drivers/gpio/gpio-ath79.c
6 @@ -202,4 +202,8 @@ static struct platform_driver ath79_gpio
7 .probe = ath79_gpio_probe,
8 };
9
10 -module_platform_driver(ath79_gpio_driver);
11 +static int __init ath79_gpio_init(void)
12 +{
13 + return platform_driver_register(&ath79_gpio_driver);
14 +}
15 +postcore_initcall(ath79_gpio_init);