From c77c54e6845c201483a75dfc931f7065d3d35c84 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 15 Feb 2015 19:45:29 +0000 Subject: ar71xx: add v3.18 support Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44456 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c') diff --git a/target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c b/target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c index 5bdeb3d557..8c01efe4a0 100644 --- a/target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c +++ b/target/linux/ar71xx/files/drivers/gpio/gpio-nxp-74hc153.c @@ -8,6 +8,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -198,6 +199,7 @@ static int nxp_74hc153_remove(struct platform_device *pdev) struct nxp_74hc153_platform_data *pdata = pdev->dev.platform_data; if (nxp) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) int err; err = gpiochip_remove(&nxp->gpio_chip); @@ -207,7 +209,9 @@ static int nxp_74hc153_remove(struct platform_device *pdev) err); return err; } - +#else + gpiochip_remove(&nxp->gpio_chip); +#endif gpio_free(pdata->gpio_pin_2y); gpio_free(pdata->gpio_pin_1y); gpio_free(pdata->gpio_pin_s1); -- cgit v1.2.3