Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17142
b: refs/heads/master
c: 31df167
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and Paul Mackerras committed Jan 9, 2006
1 parent 19294fe commit 29c648c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 9177ae4378add0126104e2966aa6150258610d59
refs/heads/master: 31df1678d7732b94178a6e457ed6666e4431212f
5 changes: 4 additions & 1 deletion trunk/arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ static int __init add_legacy_port(struct device_node *np, int want_index,

/* get clock freq. if present */
clk = (u32 *)get_property(np, "clock-frequency", NULL);
clock = clk ? *clk : BASE_BAUD * 16;
if (clk && *clk)
clock = *clk;
else
clock = BASE_BAUD * 16;

/* get default speed if present */
spd = (u32 *)get_property(np, "current-speed", NULL);
Expand Down

0 comments on commit 29c648c

Please sign in to comment.