Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303323
b: refs/heads/master
c: 258e055
h: refs/heads/master
i:
  303321: f8bcfe3
  303319: 6a59832
v: v3
  • Loading branch information
Shawn Guo committed May 12, 2012
1 parent 3d02f40 commit e84af3c
Show file tree
Hide file tree
Showing 2 changed files with 9 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: dffa27e7a8626ed2d64f027b0f844fe6fe438c11
refs/heads/master: 258e055111d3cde2607e0d04eb91da2f7a59b591
8 changes: 8 additions & 0 deletions trunk/drivers/tty/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <linux/scatterlist.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/pinctrl/consumer.h>

#include <asm/io.h>
#include <asm/sizes.h>
Expand Down Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit e84af3c

Please sign in to comment.