Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffca5af9 authored by Steven King's avatar Steven King Committed by Greg Ungerer
Browse files

m68knommu: setting the gpio data direction register to output doesn't...


m68knommu: setting the gpio data direction register to output doesn't dependent upon the value to output!

Singed-off-by: default avatarSteven King <sfking@fdwdc.com>
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent 60fc65fd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
	mcfgpio_write(data, __mcfgpio_pddr(gpio));

	/* now set the data to output */