Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212846
b: refs/heads/master
c: 1f7aac6
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Benjamin Herrenschmidt committed Sep 2, 2010
1 parent 87489fa commit 38bebd6
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 8fb07c0444c37caa39a8df7c70a694c6211f2f57
refs/heads/master: 1f7aac6eb585f92756603341cb1d770c797c4867
4 changes: 3 additions & 1 deletion trunk/drivers/macintosh/via-pmu-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ static int __init via_pmu_led_init(void)
if (dt == NULL)
return -ENODEV;
model = of_get_property(dt, "model", NULL);
if (model == NULL)
if (model == NULL) {
of_node_put(dt);
return -ENODEV;
}
if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 &&
strncmp(model, "iBook", strlen("iBook")) != 0 &&
strcmp(model, "PowerMac7,2") != 0 &&
Expand Down

0 comments on commit 38bebd6

Please sign in to comment.