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

fix the typo in commit 2eb5618de8 which uses two
gpios for rts/cts.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Qipan Li 2013-08-19 11:47:51 +08:00 committed by Greg Kroah-Hartman
parent 3abeff77c8
commit 67bc306cec
1 changed files with 5 additions and 5 deletions

View File

@ -915,20 +915,20 @@ static int sirfsoc_uart_probe(struct platform_device *pdev)
!gpio_is_valid(sirfport->rts_gpio))) { !gpio_is_valid(sirfport->rts_gpio))) {
ret = -EINVAL; ret = -EINVAL;
dev_err(&pdev->dev, dev_err(&pdev->dev,
"Usp flow control must have rfs and tfs gpio"); "Usp flow control must have cts and rts gpio");
goto err; goto err;
} }
ret = devm_gpio_request(&pdev->dev, sirfport->cts_gpio, ret = devm_gpio_request(&pdev->dev, sirfport->cts_gpio,
"usp-rfs-gpio"); "usp-cts-gpio");
if (ret) { if (ret) {
dev_err(&pdev->dev, "Unable request rfs gpio"); dev_err(&pdev->dev, "Unable request cts gpio");
goto err; goto err;
} }
gpio_direction_input(sirfport->cts_gpio); gpio_direction_input(sirfport->cts_gpio);
ret = devm_gpio_request(&pdev->dev, sirfport->rts_gpio, ret = devm_gpio_request(&pdev->dev, sirfport->rts_gpio,
"usp-tfs-gpio"); "usp-rts-gpio");
if (ret) { if (ret) {
dev_err(&pdev->dev, "Unable request tfs gpio"); dev_err(&pdev->dev, "Unable request rts gpio");
goto err; goto err;
} }
gpio_direction_output(sirfport->rts_gpio, 1); gpio_direction_output(sirfport->rts_gpio, 1);