1
0
Fork 0

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>
wifi-calibration
Steven King 2014-05-21 16:00:31 -07:00 committed by Greg Ungerer
parent 60fc65fdd1
commit ffca5af954
1 changed files with 1 additions and 4 deletions

View File

@ -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 */