Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338403
b: refs/heads/master
c: 76cc438
h: refs/heads/master
i:
  338401: 02c91da
  338399: 771fefc
v: v3
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Nov 1, 2012
1 parent 40a5679 commit 6c242e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 31fe99048859b13a87f476016e7bb5c2b5220c36
refs/heads/master: 76cc43868c1e9d6344ad6c4992c4f6abd5204a8f
4 changes: 2 additions & 2 deletions trunk/drivers/tty/serial/of_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ static int __devinit of_platform_serial_setup(struct platform_device *ofdev,

/* Get clk rate through clk driver if present */
info->clk = clk_get(&ofdev->dev, NULL);
if (info->clk == NULL) {
if (IS_ERR(info->clk)) {
dev_warn(&ofdev->dev,
"clk or clock-frequency not defined\n");
return -ENODEV;
return PTR_ERR(info->clk);
}

clk_prepare_enable(info->clk);
Expand Down

0 comments on commit 6c242e2

Please sign in to comment.