diff options
author | Christopher Alexander Tobias Schulze <cat.schulze@alice-dsl.net> | 2014-08-03 15:44:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-04 16:53:43 -0700 |
commit | 5cdceab3d5e02eb69ea0f5d8fa9181800baf6f77 (patch) | |
tree | 26ab04f2c46e8d7bd09bc8ed64523e22f6c5d9fa /drivers/sbus/char/bbc_envctrl.c | |
parent | 18f38132528c3e603c66ea464727b29e9bbcb91b (diff) | |
download | op-kernel-dev-5cdceab3d5e02eb69ea0f5d8fa9181800baf6f77.zip op-kernel-dev-5cdceab3d5e02eb69ea0f5d8fa9181800baf6f77.tar.gz |
bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000
Fix regression in bbc i2c temperature and fan control on some Sun systems
that causes the driver to refuse to load due to the bbc_i2c_bussel resource not
being present on the (second) i2c bus where the temperature sensors and fan
control are located. (The check for the number of resources was removed when
the driver was ported to a pure OF driver in mid 2008.)
Signed-off-by: Christopher Alexander Tobias Schulze <cat.schulze@alice-dsl.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 160e751..0787b97 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, if (!tp) return; + INIT_LIST_HEAD(&tp->bp_list); + INIT_LIST_HEAD(&tp->glob_list); + tp->client = bbc_i2c_attach(bp, op); if (!tp->client) { kfree(tp); @@ -497,6 +500,9 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct platform_device *op, if (!fp) return; + INIT_LIST_HEAD(&fp->bp_list); + INIT_LIST_HEAD(&fp->glob_list); + fp->client = bbc_i2c_attach(bp, op); if (!fp->client) { kfree(fp); |