提交 deffc6ed 编写于 作者: S Sonic Zhang 提交者: Bryan Wu

Blackfin arch: fix bug - some serial header files set RTS to an input when...

Blackfin arch: fix bug - some serial header files set RTS to an input when they should all be outputs
Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 04ab5918
......@@ -158,7 +158,7 @@ static void bfin_serial_hw_init(struct bfin_serial_port *uart)
}
if (uart->rts_pin >= 0) {
gpio_request(uart->rts_pin, DRIVER_NAME);
gpio_direction_input(uart->rts_pin, 0);
gpio_direction_output(uart->rts_pin, 0);
}
#endif
}
......@@ -158,7 +158,7 @@ static void bfin_serial_hw_init(struct bfin_serial_port *uart)
}
if (uart->rts_pin >= 0) {
gpio_request(uart->rts_pin, DRIVER_NAME);
gpio_direction_input(uart->rts_pin, 0);
gpio_direction_output(uart->rts_pin, 0);
}
#endif
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册