aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/rb532
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2008-11-28 14:46:22 -0500
committerRalf Baechle <ralf@linux-mips.org>2009-01-30 16:32:59 -0500
commit84c2c562c101bd84ea0f796b9838296da1bf859e (patch)
tree6e6ee1e3d5d033f62cbf2e5b7affad6c2294cc98 /arch/mips/rb532
parent33763d571da995913299cd0509425decfa9e4be0 (diff)
MIPS: RB532: remove useless CF GPIO initialisation
As the pata-rb532-cf driver calls gpio_direction_input(), the calls to rb532_gpio_set_func() and rb532_gpio_direction_input() are not needed since the alternate function is automatically being disabled when changing the GPIO pin direction. The later two calls to rb532_gpio_set_{ilevel,istat}() are implicitly being done by the IRQ initialisation of pata-rb532-cf. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r--arch/mips/rb532/gpio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index f5b15a17432f..b195f797c438 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -259,12 +259,6 @@ int __init rb532_gpio_init(void)
259 return -ENXIO; 259 return -ENXIO;
260 } 260 }
261 261
262 /* configure CF_GPIO_NUM as CFRDY IRQ source */
263 rb532_gpio_set_func(0, CF_GPIO_NUM);
264 rb532_gpio_direction_input(&rb532_gpio_chip->chip, CF_GPIO_NUM);
265 rb532_gpio_set_ilevel(1, CF_GPIO_NUM);
266 rb532_gpio_set_istat(0, CF_GPIO_NUM);
267
268 return 0; 262 return 0;
269} 263}
270arch_initcall(rb532_gpio_init); 264arch_initcall(rb532_gpio_init);