From e84af3c14fa7e78916a2e471e1652a681f04b948 Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Sun, 6 May 2012 22:53:35 +0800 Subject: [PATCH] --- yaml --- r: 303323 b: refs/heads/master c: 258e055111d3cde2607e0d04eb91da2f7a59b591 h: refs/heads/master i: 303321: f8bcfe36ace822fe4d7e97d7f159abd4a6174774 303319: 6a5983248162941f631c77ffe8c46810483c99c9 v: v3 --- [refs] | 2 +- trunk/drivers/tty/serial/amba-pl011.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f6b84af048f7..ee9311273011 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dffa27e7a8626ed2d64f027b0f844fe6fe438c11 +refs/heads/master: 258e055111d3cde2607e0d04eb91da2f7a59b591 diff --git a/trunk/drivers/tty/serial/amba-pl011.c b/trunk/drivers/tty/serial/amba-pl011.c index 3d569cd68f58..062ef8c2b3cb 100644 --- a/trunk/drivers/tty/serial/amba-pl011.c +++ b/trunk/drivers/tty/serial/amba-pl011.c @@ -52,6 +52,7 @@ #include #include #include +#include #include #include @@ -1916,6 +1917,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) { struct uart_amba_port *uap; struct vendor_data *vendor = id->data; + struct pinctrl *pinctrl; void __iomem *base; int i, ret; @@ -1940,6 +1942,12 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) goto free; } + pinctrl = devm_pinctrl_get_select_default(&dev->dev); + if (IS_ERR(pinctrl)) { + ret = PTR_ERR(pinctrl); + goto unmap; + } + uap->clk = clk_get(&dev->dev, NULL); if (IS_ERR(uap->clk)) { ret = PTR_ERR(uap->clk);