Commit 67bc306c authored by Qipan Li's avatar Qipan Li Committed by Greg Kroah-Hartman

serial: sirf: fix the typo for rts/cts gpio

fix the typo in commit 2eb5618d which uses two
gpios for rts/cts.
Signed-off-by: default avatarQipan Li <Qipan.Li@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3abeff77
......@@ -915,20 +915,20 @@ static int sirfsoc_uart_probe(struct platform_device *pdev)
!gpio_is_valid(sirfport->rts_gpio))) {
ret = -EINVAL;
dev_err(&pdev->dev,
"Usp flow control must have rfs and tfs gpio");
"Usp flow control must have cts and rts gpio");
goto err;
}
ret = devm_gpio_request(&pdev->dev, sirfport->cts_gpio,
"usp-rfs-gpio");
"usp-cts-gpio");
if (ret) {
dev_err(&pdev->dev, "Unable request rfs gpio");
dev_err(&pdev->dev, "Unable request cts gpio");
goto err;
}
gpio_direction_input(sirfport->cts_gpio);
ret = devm_gpio_request(&pdev->dev, sirfport->rts_gpio,
"usp-tfs-gpio");
"usp-rts-gpio");
if (ret) {
dev_err(&pdev->dev, "Unable request tfs gpio");
dev_err(&pdev->dev, "Unable request rts gpio");
goto err;
}
gpio_direction_output(sirfport->rts_gpio, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment