Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303318
b: refs/heads/master
c: fed78ce
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed May 11, 2012
1 parent 4c4213d commit 30f85eb
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: e62d8b8fe73518d1875371a2ee9c5fdd31eba6f8
refs/heads/master: fed78ce4c6af1c0d516ae6f4cdc2bb8dbbca8c22
8 changes: 8 additions & 0 deletions trunk/drivers/tty/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/pinctrl/consumer.h>

#include <asm/io.h>
#include <asm/irq.h>
Expand Down Expand Up @@ -1464,6 +1465,7 @@ static int serial_imx_probe(struct platform_device *pdev)
void __iomem *base;
int ret = 0;
struct resource *res;
struct pinctrl *pinctrl;

sport = kzalloc(sizeof(*sport), GFP_KERNEL);
if (!sport)
Expand Down Expand Up @@ -1503,6 +1505,12 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->timer.function = imx_timeout;
sport->timer.data = (unsigned long)sport;

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(pinctrl);
goto unmap;
}

sport->clk = clk_get(&pdev->dev, "uart");
if (IS_ERR(sport->clk)) {
ret = PTR_ERR(sport->clk);
Expand Down

0 comments on commit 30f85eb

Please sign in to comment.