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>
This commit is contained in:
parent
60fc65fdd1
commit
ffca5af954
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue