Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315038
b: refs/heads/master
c: afc016d
h: refs/heads/master
v: v3
  • Loading branch information
Hui Wang authored and Marc Kleine-Budde committed Jul 2, 2012
1 parent ab28e73 commit bf6ffe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 8b7b736fbfa1307fd294ca1fca69316f1b07a806
refs/heads/master: afc016d8360ceb19a1f37bf6579d5850d47d582d
11 changes: 3 additions & 8 deletions trunk/drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,14 +938,9 @@ static int __devinit flexcan_probe(struct platform_device *pdev)
if (IS_ERR(pinctrl))
return PTR_ERR(pinctrl);

if (pdev->dev.of_node) {
const __be32 *clock_freq_p;

clock_freq_p = of_get_property(pdev->dev.of_node,
"clock-frequency", NULL);
if (clock_freq_p)
clock_freq = be32_to_cpup(clock_freq_p);
}
if (pdev->dev.of_node)
of_property_read_u32(pdev->dev.of_node,
"clock-frequency", &clock_freq);

if (!clock_freq) {
clk = clk_get(&pdev->dev, NULL);
Expand Down

0 comments on commit bf6ffe3

Please sign in to comment.