diff options
-rw-r--r-- | drivers/tty/serial/sirfsoc_uart.c | 20 | ||||
-rw-r--r-- | drivers/tty/serial/sirfsoc_uart.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c index a60523fee11b..c1a871eac450 100644 --- a/drivers/tty/serial/sirfsoc_uart.c +++ b/drivers/tty/serial/sirfsoc_uart.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
24 | #include <asm/mach/irq.h> | 24 | #include <asm/mach/irq.h> |
25 | #include <linux/pinctrl/pinmux.h> | 25 | #include <linux/pinctrl/consumer.h> |
26 | 26 | ||
27 | #include "sirfsoc_uart.h" | 27 | #include "sirfsoc_uart.h" |
28 | 28 | ||
@@ -673,12 +673,12 @@ int sirfsoc_uart_probe(struct platform_device *pdev) | |||
673 | port->irq = res->start; | 673 | port->irq = res->start; |
674 | 674 | ||
675 | if (sirfport->hw_flow_ctrl) { | 675 | if (sirfport->hw_flow_ctrl) { |
676 | sirfport->pmx = pinmux_get(&pdev->dev, NULL); | 676 | sirfport->p = pinctrl_get(&pdev->dev, NULL); |
677 | ret = IS_ERR(sirfport->pmx); | 677 | ret = IS_ERR(sirfport->p); |
678 | if (ret) | 678 | if (ret) |
679 | goto pmx_err; | 679 | goto pin_err; |
680 | 680 | ||
681 | pinmux_enable(sirfport->pmx); | 681 | pinctrl_enable(sirfport->p); |
682 | } | 682 | } |
683 | 683 | ||
684 | port->ops = &sirfsoc_uart_ops; | 684 | port->ops = &sirfsoc_uart_ops; |
@@ -696,10 +696,10 @@ int sirfsoc_uart_probe(struct platform_device *pdev) | |||
696 | port_err: | 696 | port_err: |
697 | platform_set_drvdata(pdev, NULL); | 697 | platform_set_drvdata(pdev, NULL); |
698 | if (sirfport->hw_flow_ctrl) { | 698 | if (sirfport->hw_flow_ctrl) { |
699 | pinmux_disable(sirfport->pmx); | 699 | pinctrl_disable(sirfport->p); |
700 | pinmux_put(sirfport->pmx); | 700 | pinctrl_put(sirfport->p); |
701 | } | 701 | } |
702 | pmx_err: | 702 | pin_err: |
703 | irq_err: | 703 | irq_err: |
704 | devm_iounmap(&pdev->dev, port->membase); | 704 | devm_iounmap(&pdev->dev, port->membase); |
705 | err: | 705 | err: |
@@ -712,8 +712,8 @@ static int sirfsoc_uart_remove(struct platform_device *pdev) | |||
712 | struct uart_port *port = &sirfport->port; | 712 | struct uart_port *port = &sirfport->port; |
713 | platform_set_drvdata(pdev, NULL); | 713 | platform_set_drvdata(pdev, NULL); |
714 | if (sirfport->hw_flow_ctrl) { | 714 | if (sirfport->hw_flow_ctrl) { |
715 | pinmux_disable(sirfport->pmx); | 715 | pinctrl_disable(sirfport->p); |
716 | pinmux_put(sirfport->pmx); | 716 | pinctrl_put(sirfport->p); |
717 | } | 717 | } |
718 | devm_iounmap(&pdev->dev, port->membase); | 718 | devm_iounmap(&pdev->dev, port->membase); |
719 | uart_remove_one_port(&sirfsoc_uart_drv, port); | 719 | 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 fc64260fa93c..6e207fdc2fed 100644 --- a/drivers/tty/serial/sirfsoc_uart.h +++ b/drivers/tty/serial/sirfsoc_uart.h | |||
@@ -162,7 +162,7 @@ struct sirfsoc_uart_port { | |||
162 | unsigned char ms_enabled; | 162 | unsigned char ms_enabled; |
163 | 163 | ||
164 | struct uart_port port; | 164 | struct uart_port port; |
165 | struct pinmux *pmx; | 165 | struct pinctrl *p; |
166 | }; | 166 | }; |
167 | 167 | ||
168 | /* Hardware Flow Control */ | 168 | /* Hardware Flow Control */ |