Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358629
b: refs/heads/master
c: 61d4eb2
h: refs/heads/master
i:
  358627: 5c95520
v: v3
  • Loading branch information
Axel Lin authored and Bryan Wu committed Feb 7, 2013
1 parent 7df0326 commit 1980f9d
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: ef754e88e35f86d9704f79ac8dace8c66f367164
refs/heads/master: 61d4eb2724283e85b37ed2fe13390366d7a6db74
5 changes: 4 additions & 1 deletion trunk/drivers/leds/leds-88pm860x.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ static void pm860x_led_set(struct led_classdev *cdev,
static int pm860x_led_dt_init(struct platform_device *pdev,
struct pm860x_led *data)
{
struct device_node *nproot = pdev->dev.parent->of_node, *np;
struct device_node *nproot, *np;
int iset = 0;

nproot = of_node_get(pdev->dev.parent->of_node);
if (!nproot)
return -ENODEV;
nproot = of_find_node_by_name(nproot, "leds");
Expand All @@ -145,6 +147,7 @@ static int pm860x_led_dt_init(struct platform_device *pdev,
break;
}
}
of_node_put(nproot);
return 0;
}
#else
Expand Down

0 comments on commit 1980f9d

Please sign in to comment.