Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH 1/3] serial: sirf: drop redundant pinctrl_get_select_default as pinctrl core does it
@ 2013-08-13 11:18 Barry Song
  2013-08-13 11:18 ` [PATCH 2/3] serial: sirf: fix the hardware-flow-ctrl for USP-based UART Barry Song
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Barry Song @ 2013-08-13 11:18 UTC (permalink / raw)
  To: gregkh, linux-serial; +Cc: workgroup.linux, Barry Song, Linus Walleij

pinctrl core will get default pinmux, so drop it in the sirfsoc serial driver.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
 drivers/tty/serial/sirfsoc_uart.c | 12 ------------
 drivers/tty/serial/sirfsoc_uart.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
index 3b9382b..64d0192 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -22,7 +22,6 @@
 #include <linux/io.h>
 #include <asm/irq.h>
 #include <asm/mach/irq.h>
-#include <linux/pinctrl/consumer.h>
 
 #include "sirfsoc_uart.h"
 
@@ -893,13 +892,6 @@ static int sirfsoc_uart_probe(struct platform_device *pdev)
 	}
 	port->irq = res->start;
 
-	if (sirfport->hw_flow_ctrl) {
-		sirfport->p = pinctrl_get_select_default(&pdev->dev);
-		ret = IS_ERR(sirfport->p);
-		if (ret)
-			goto err;
-	}
-
 	sirfport->clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(sirfport->clk)) {
 		ret = PTR_ERR(sirfport->clk);
@@ -925,8 +917,6 @@ port_err:
 	clk_put(sirfport->clk);
 clk_err:
 	platform_set_drvdata(pdev, NULL);
-	if (sirfport->hw_flow_ctrl)
-		pinctrl_put(sirfport->p);
 err:
 	return ret;
 }
@@ -936,8 +926,6 @@ static int sirfsoc_uart_remove(struct platform_device *pdev)
 	struct sirfsoc_uart_port *sirfport = platform_get_drvdata(pdev);
 	struct uart_port *port = &sirfport->port;
 	platform_set_drvdata(pdev, NULL);
-	if (sirfport->hw_flow_ctrl)
-		pinctrl_put(sirfport->p);
 	clk_disable_unprepare(sirfport->clk);
 	clk_put(sirfport->clk);
 	uart_remove_one_port(&sirfsoc_uart_drv, port);
diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h
index 6f6d275..2b41b06 100644
--- a/drivers/tty/serial/sirfsoc_uart.h
+++ b/drivers/tty/serial/sirfsoc_uart.h
@@ -367,7 +367,6 @@ struct sirfsoc_uart_port {
 	unsigned char			ms_enabled;
 
 	struct uart_port		port;
-	struct pinctrl			*p;
 	struct clk			*clk;
 	/* for SiRFmarco, there are SET/CLR for UART_INT_EN */
 	bool				is_marco;
-- 
1.8.2.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-14 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 11:18 [PATCH 1/3] serial: sirf: drop redundant pinctrl_get_select_default as pinctrl core does it Barry Song
2013-08-13 11:18 ` [PATCH 2/3] serial: sirf: fix the hardware-flow-ctrl for USP-based UART Barry Song
2013-08-13 11:18 ` [PATCH 3/3] serial: sirf: add DT-binding document to describle detailed properties Barry Song
2013-08-14 19:11 ` [PATCH 1/3] serial: sirf: drop redundant pinctrl_get_select_default as pinctrl core does it Greg KH
2013-08-14 22:38   ` Barry Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox