diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-21 21:47:20 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-21 21:47:20 +0000 |
commit | 6a44e4ebac998e12bab9a3f1a3192f003dc6eb1c (patch) | |
tree | 0302fcb5f4346e0db1387b1c945731b344c77ea3 /target | |
parent | d4a4c0aefc7089ee345ea171a9b2ef28a6254d7d (diff) | |
download | master-187ad058-6a44e4ebac998e12bab9a3f1a3192f003dc6eb1c.tar.gz master-187ad058-6a44e4ebac998e12bab9a3f1a3192f003dc6eb1c.tar.bz2 master-187ad058-6a44e4ebac998e12bab9a3f1a3192f003dc6eb1c.zip |
oxnas: remove pre kernel 3.18 support from pinctrl driver
just some pruning...
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44923 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c b/target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c index 6cc8f72c60..fa5f3a9431 100644 --- a/target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c +++ b/target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c @@ -9,7 +9,6 @@ #include <linux/err.h> #include <linux/init.h> #include <linux/module.h> -#include <linux/version.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_address.h> @@ -563,30 +562,6 @@ static int oxnas_pmx_set_mux(struct pinctrl_dev *pctldev, unsigned selector, return 0; } -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)) -static void oxnas_pmx_disable(struct pinctrl_dev *pctldev, unsigned selector, - unsigned group) -{ - struct oxnas_pinctrl *info = pinctrl_dev_get_drvdata(pctldev); - const struct oxnas_pmx_pin *pins_conf = info->groups[group].pins_conf; - const struct oxnas_pmx_pin *pin; - uint32_t npins = info->groups[group].npins; - int i; - unsigned mask; - void __iomem *pio; - void __iomem *cio; - - for (i = 0; i < npins; i++) { - pin = &pins_conf[i]; - oxnas_pin_dbg(info->dev, pin); - pio = pin_to_gpioctrl(info, pin->bank); - cio = pin_to_muxctrl(info, pin->bank); - mask = pin_to_mask(pin->pin); - oxnas_mux_gpio_enable(cio, pio, mask, 1); - } -} -#endif - static int oxnas_pmx_get_funcs_count(struct pinctrl_dev *pctldev) { struct oxnas_pinctrl *info = pinctrl_dev_get_drvdata(pctldev); @@ -660,14 +635,7 @@ static const struct pinmux_ops oxnas_pmx_ops = { .get_functions_count = oxnas_pmx_get_funcs_count, .get_function_name = oxnas_pmx_get_func_name, .get_function_groups = oxnas_pmx_get_groups, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)) .set_mux = oxnas_pmx_set_mux, -#else - .enable = oxnas_pmx_set_mux, -#endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)) - .disable = oxnas_pmx_disable, -#endif .gpio_request_enable = oxnas_gpio_request_enable, .gpio_disable_free = oxnas_gpio_disable_free, }; |