aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorSteven King <sfking@fdwdc.com>2014-05-21 16:00:31 -0700
committerGreg Ungerer <gerg@uclinux.org>2014-05-26 13:28:38 +1000
commitffca5af954c202d47ef00ac46b90493eaa7fcde5 (patch)
treec1fcb5d11ec994c050b29988bfcb13de951a9cb1 /arch/m68k
parent60fc65fdd1f18c75095a00229078d884f5135fc1 (diff)
downloadlinux-ffca5af954c202d47ef00ac46b90493eaa7fcde5.tar.gz
m68knommu: setting the gpio data direction register to output doesn't dependent upon the value to output!
Singed-off-by: Steven King <sfking@fdwdc.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/platform/coldfire/gpio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c
index ab9ac411087..e1688862928 100644
--- a/arch/m68k/platform/coldfire/gpio.c
+++ b/arch/m68k/platform/coldfire/gpio.c
@@ -76,10 +76,7 @@ int __mcfgpio_direction_output(unsigned gpio, int value)
local_irq_save(flags);
data = mcfgpio_read(__mcfgpio_pddr(gpio));
- if (value)
- data |= mcfgpio_bit(gpio);
- else
- data &= mcfgpio_bit(gpio);
+ data |= mcfgpio_bit(gpio);
mcfgpio_write(data, __mcfgpio_pddr(gpio));
/* now set the data to output */