summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-29 22:55:14 -0700
committerDavid S. Miller <davem@davemloft.net>2008-08-29 22:55:14 -0700
commit39890072b320e7731b105b459cee1320957adbc7 (patch)
tree1b749bdde14e63c2516d13590fcc9e677018f649 /drivers/sbus
parentae05f87ee2f403228bca6d28fef29d6be0bfbedc (diff)
downloadblackbird-obmc-linux-39890072b320e7731b105b459cee1320957adbc7.tar.gz
blackbird-obmc-linux-39890072b320e7731b105b459cee1320957adbc7.zip
bbc_envctrl: Fix build errors from bbc_i2c OF conversion.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/bbc_envctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c
index abe4d50de21d..15dab96d05e3 100644
--- a/drivers/sbus/char/bbc_envctrl.c
+++ b/drivers/sbus/char/bbc_envctrl.c
@@ -451,7 +451,7 @@ static void attach_one_temp(struct bbc_i2c_bus *bp, struct of_device *op,
if (!tp)
return;
- tp->client = bbc_i2c_attach(op);
+ tp->client = bbc_i2c_attach(bp, op);
if (!tp->client) {
kfree(tp);
return;
@@ -496,7 +496,7 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct of_device *op,
if (!fp)
return;
- fp->client = bbc_i2c_attach(op);
+ fp->client = bbc_i2c_attach(bp, op);
if (!fp->client) {
kfree(fp);
return;
@@ -529,7 +529,7 @@ int bbc_envctrl_init(struct bbc_i2c_bus *bp)
int fan_index = 0;
int devidx = 0;
- while ((op = bbc_i2c_getdev(devidx++)) != NULL) {
+ while ((op = bbc_i2c_getdev(bp, devidx++)) != NULL) {
if (!strcmp(op->node->name, "temperature"))
attach_one_temp(bp, op, temp_index++);
if (!strcmp(op->node->name, "fan-control"))
OpenPOWER on IntegriCloud