projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add v3.18 support
[openwrt.git]
/
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
5bdeb3d
..
8c01efe
100644
(file)
--- 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.
*/
* published by the Free Software Foundation.
*/
+#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gpio.h>
@@
-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) {
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);
int err;
err = gpiochip_remove(&nxp->gpio_chip);
@@
-207,7
+209,9
@@
static int nxp_74hc153_remove(struct platform_device *pdev)
err);
return err;
}
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);
gpio_free(pdata->gpio_pin_2y);
gpio_free(pdata->gpio_pin_1y);
gpio_free(pdata->gpio_pin_s1);