diff options
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index 160e7510aca6..0787b9756165 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c | |||
@@ -452,6 +452,9 @@ static void attach_one_temp(struct bbc_i2c_bus *bp, struct platform_device *op, | |||
452 | if (!tp) | 452 | if (!tp) |
453 | return; | 453 | return; |
454 | 454 | ||
455 | INIT_LIST_HEAD(&tp->bp_list); | ||
456 | INIT_LIST_HEAD(&tp->glob_list); | ||
457 | |||
455 | tp->client = bbc_i2c_attach(bp, op); | 458 | tp->client = bbc_i2c_attach(bp, op); |
456 | if (!tp->client) { | 459 | if (!tp->client) { |
457 | kfree(tp); | 460 | kfree(tp); |
@@ -497,6 +500,9 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct platform_device *op, | |||
497 | if (!fp) | 500 | if (!fp) |
498 | return; | 501 | return; |
499 | 502 | ||
503 | INIT_LIST_HEAD(&fp->bp_list); | ||
504 | INIT_LIST_HEAD(&fp->glob_list); | ||
505 | |||
500 | fp->client = bbc_i2c_attach(bp, op); | 506 | fp->client = bbc_i2c_attach(bp, op); |
501 | if (!fp->client) { | 507 | if (!fp->client) { |
502 | kfree(fp); | 508 | kfree(fp); |