projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: 88pm860x: Use of_node_name_eq for node name comparisons
[platform/kernel/linux-rpi.git]
/
drivers
/
leds
/
leds-88pm860x.c
diff --git
a/drivers/leds/leds-88pm860x.c
b/drivers/leds/leds-88pm860x.c
index
77a104d
..
036d4a5
100644
(file)
--- a/
drivers/leds/leds-88pm860x.c
+++ b/
drivers/leds/leds-88pm860x.c
@@
-130,7
+130,7
@@
static int pm860x_led_dt_init(struct platform_device *pdev,
return -ENODEV;
}
for_each_child_of_node(nproot, np) {
- if (
!of_node_cmp(np->name
, data->name)) {
+ if (
of_node_name_eq(np
, data->name)) {
of_property_read_u32(np, "marvell,88pm860x-iset",
&iset);
data->iset = PM8606_LED_CURRENT(iset);