diff options
author | John Crispin <blogic@openwrt.org> | 2012-05-11 12:45:25 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-05-21 09:31:50 -0400 |
commit | bd51db7f3bf2ba23ff55f6d5fdcec04c74df13e4 (patch) | |
tree | dc3a006b1679726d1eadca10c9d35f1b330c3fdc /arch/mips/lantiq/xway/gpio_stp.c | |
parent | 3645da0276ae9f6938ff29b13904b803ecb68424 (diff) |
MIPS: lantiq: drop ltq_gpio_request() and gpio_to_irq()
As part of the conversion to OF we also implement pinctrl drivers. Previously
we used ltq_gpio_request() to set pinmuxing. This is now obselete and we can
hence drop the function.
Additionally we remove gpio_to_irq() from the gpio driver and move it to a
header file.
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3801/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lantiq/xway/gpio_stp.c')
-rw-r--r-- | arch/mips/lantiq/xway/gpio_stp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/lantiq/xway/gpio_stp.c b/arch/mips/lantiq/xway/gpio_stp.c index ff9991cddeaa..d674f1be237d 100644 --- a/arch/mips/lantiq/xway/gpio_stp.c +++ b/arch/mips/lantiq/xway/gpio_stp.c | |||
@@ -78,11 +78,6 @@ static struct gpio_chip ltq_stp_chip = { | |||
78 | 78 | ||
79 | static int ltq_stp_hw_init(void) | 79 | static int ltq_stp_hw_init(void) |
80 | { | 80 | { |
81 | /* the 3 pins used to control the external stp */ | ||
82 | ltq_gpio_request(4, 1, 0, 1, "stp-st"); | ||
83 | ltq_gpio_request(5, 1, 0, 1, "stp-d"); | ||
84 | ltq_gpio_request(6, 1, 0, 1, "stp-sh"); | ||
85 | |||
86 | /* sane defaults */ | 81 | /* sane defaults */ |
87 | ltq_stp_w32(0, LTQ_STP_AR); | 82 | ltq_stp_w32(0, LTQ_STP_AR); |
88 | ltq_stp_w32(0, LTQ_STP_CPU0); | 83 | ltq_stp_w32(0, LTQ_STP_CPU0); |