]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: mxs-auart: Fix build error
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 10 Mar 2015 14:24:24 +0000 (11:24 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2015 12:55:20 +0000 (13:55 +0100)
Commit 343fda95481a7254f ("serial: mxs-auart: properly handle mctrl_gpio
failing") introduced the following build error:

  CC      drivers/tty/serial/mxs-auart.o
drivers/tty/serial/mxs-auart.c: In function 'mxs_auart_probe':
drivers/tty/serial/mxs-auart.c:1282:3: error: unknown type name 'got'

Fix it by providing a proper return code.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c

index 9abdccf5bfb2a78e315e5239d46ec1b9c7ccca76..20a863bde78de3c9a1d07b29f158ff6e04ae7dc6 100644 (file)
@@ -1279,7 +1279,7 @@ static int mxs_auart_probe(struct platform_device *pdev)
        ret = mxs_auart_init_gpios(s, &pdev->dev);
        if (ret) {
                dev_err(&pdev->dev, "Failed to initialize GPIOs.\n");
-               got out_free_irq;
+               return ret;
        }
 
        /*