lkml.org 
[lkml]   [2015]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] serial: mxs-auart: fix build failure due to broken goto statement
Date
fix mxs-auart build failure. got -> goto and wrong jump target.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---

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


\
 
 \ /
  Last update: 2015-03-10 19:21    [W:1.479 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site