Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325750
b: refs/heads/master
c: 3dbc5ce
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent e874fab commit 4772b76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce2f08ded291188b684e3d2e9940132514ada0a9
refs/heads/master: 3dbc5ce2bffa40ef9a95247f3e9ea0f8874489ac
9 changes: 9 additions & 0 deletions trunk/drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <linux/pm_runtime.h>
#include <linux/of.h>
#include <linux/gpio.h>
#include <linux/pinctrl/consumer.h>

#include <plat/omap-serial.h>

Expand Down Expand Up @@ -108,6 +109,7 @@ struct uart_omap_port {
u32 latency;
u32 calc_latency;
struct work_struct qos_work;
struct pinctrl *pins;
};

#define to_uart_omap_port(p) ((container_of((p), struct uart_omap_port, port)))
Expand Down Expand Up @@ -1377,6 +1379,13 @@ static int __devinit serial_omap_probe(struct platform_device *pdev)
goto err_port_line;
}

up->pins = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(up->pins)) {
dev_warn(&pdev->dev, "did not get pins for uart%i error: %li\n",
up->port.line, PTR_ERR(up->pins));
up->pins = NULL;
}

sprintf(up->name, "OMAP UART%d", up->port.line);
up->port.mapbase = mem->start;
up->port.membase = devm_ioremap(&pdev->dev, mem->start,
Expand Down

0 comments on commit 4772b76

Please sign in to comment.