diff options
author | Steven King <sfking@fdwdc.com> | 2014-05-21 16:00:31 -0700 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2014-05-26 13:28:38 +1000 |
commit | ffca5af954c202d47ef00ac46b90493eaa7fcde5 (patch) | |
tree | c1fcb5d11ec994c050b29988bfcb13de951a9cb1 /arch/m68k | |
parent | 60fc65fdd1f18c75095a00229078d884f5135fc1 (diff) |
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index ab9ac4110877..e16888629285 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 */ |