fix mxs-auart build failure. got -> goto and wrong jump target.

Signed-off-by: Nicholas Mc Guire <[email protected]>
---

Seems this was introduced in 343fda95481a ("serial: mxs-auart: properly handle 
mctrl_gpio failing")

This was only compile tested for mxs_defconfig

Patch is against 4.0-rc3 (localversion-next is -next-20150310)

 drivers/tty/serial/mxs-auart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
index 9abdccf..a17abca 100644
--- a/drivers/tty/serial/mxs-auart.c
+++ b/drivers/tty/serial/mxs-auart.c
@@ -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;
+               goto out_free_gpio_irq;
        }
 
        /*
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to