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:

committed by
Greg Ungerer

parent
60fc65fdd1
commit
ffca5af954
@@ -76,10 +76,7 @@ int __mcfgpio_direction_output(unsigned gpio, int value)
|
|||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
data = mcfgpio_read(__mcfgpio_pddr(gpio));
|
data = mcfgpio_read(__mcfgpio_pddr(gpio));
|
||||||
if (value)
|
|
||||||
data |= mcfgpio_bit(gpio);
|
data |= mcfgpio_bit(gpio);
|
||||||
else
|
|
||||||
data &= mcfgpio_bit(gpio);
|
|
||||||
mcfgpio_write(data, __mcfgpio_pddr(gpio));
|
mcfgpio_write(data, __mcfgpio_pddr(gpio));
|
||||||
|
|
||||||
/* now set the data to output */
|
/* now set the data to output */
|
||||||
|
Reference in New Issue
Block a user