Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185180
b: refs/heads/master
c: bbcd18d
h: refs/heads/master
v: v3
  • Loading branch information
Baruch Siach authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 4d06a03 commit a31d66d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac6ec5b1de5d1d5afcbe88d73c05df71dca0ac39
refs/heads/master: bbcd18d1b37413d25eaf4580682b1b8e4a09ff5e
6 changes: 3 additions & 3 deletions trunk/drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->use_irda = 1;
#endif

if (pdata->init) {
if (pdata && pdata->init) {
ret = pdata->init(pdev);
if (ret)
goto clkput;
Expand All @@ -1292,7 +1292,7 @@ static int serial_imx_probe(struct platform_device *pdev)

return 0;
deinit:
if (pdata->exit)
if (pdata && pdata->exit)
pdata->exit(pdev);
clkput:
clk_put(sport->clk);
Expand Down Expand Up @@ -1321,7 +1321,7 @@ static int serial_imx_remove(struct platform_device *pdev)

clk_disable(sport->clk);

if (pdata->exit)
if (pdata && pdata->exit)
pdata->exit(pdev);

iounmap(sport->port.membase);
Expand Down

0 comments on commit a31d66d

Please sign in to comment.