serial: sirf: fix the typo for rts/cts gpio
authorQipan Li <Qipan.Li@csr.com>
Mon, 19 Aug 2013 03:47:51 +0000 (11:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 00:12:21 +0000 (17:12 -0700)
fix the typo in commit 2eb5618de87927e54 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>
drivers/tty/serial/sirfsoc_uart.c

index ed3b89046276a27dcf73ac32c261d27c97987438..10718c0d5439909706177fc03db39a380419295d 100644 (file)
@@ -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);