diff options
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index d89f83f769f5..1cc706e11119 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c | |||
@@ -575,9 +575,9 @@ int bbc_envctrl_init(void) | |||
575 | int devidx = 0; | 575 | int devidx = 0; |
576 | 576 | ||
577 | while ((echild = bbc_i2c_getdev(devidx++)) != NULL) { | 577 | while ((echild = bbc_i2c_getdev(devidx++)) != NULL) { |
578 | if (!strcmp(echild->prom_name, "temperature")) | 578 | if (!strcmp(echild->prom_node->name, "temperature")) |
579 | attach_one_temp(echild, temp_index++); | 579 | attach_one_temp(echild, temp_index++); |
580 | if (!strcmp(echild->prom_name, "fan-control")) | 580 | if (!strcmp(echild->prom_node->name, "fan-control")) |
581 | attach_one_fan(echild, fan_index++); | 581 | attach_one_fan(echild, fan_index++); |
582 | } | 582 | } |
583 | if (temp_index != 0 && fan_index != 0) { | 583 | if (temp_index != 0 && fan_index != 0) { |