Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107678
b: refs/heads/master
c: 5394ba0
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Aug 5, 2008
1 parent 99fd1e1 commit 4a276e3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 9bd6ceb666e76b9a3caefa158827a571ead55b6a
refs/heads/master: 5394ba0fd892291eb425649fdbc82b673e0b7956
8 changes: 6 additions & 2 deletions trunk/drivers/video/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,8 +1649,10 @@ static int __init fsl_diu_init(void)
}

prop = of_get_property(np, "d-cache-size", NULL);
if (prop == NULL)
if (prop == NULL) {
of_node_put(np);
return -ENODEV;
}

/* Freescale PLRU requires 13/8 times the cache size to do a proper
displacement flush
Expand All @@ -1659,8 +1661,10 @@ static int __init fsl_diu_init(void)
coherence_data_size /= 8;

prop = of_get_property(np, "d-cache-line-size", NULL);
if (prop == NULL)
if (prop == NULL) {
of_node_put(np);
return -ENODEV;
}
d_cache_line_size = *prop;

of_node_put(np);
Expand Down

0 comments on commit 4a276e3

Please sign in to comment.