Commit 39890072 authored by David S. Miller's avatar David S. Miller

bbc_envctrl: Fix build errors from bbc_i2c OF conversion.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae05f87e
...@@ -451,7 +451,7 @@ static void attach_one_temp(struct bbc_i2c_bus *bp, struct of_device *op, ...@@ -451,7 +451,7 @@ static void attach_one_temp(struct bbc_i2c_bus *bp, struct of_device *op,
if (!tp) if (!tp)
return; return;
tp->client = bbc_i2c_attach(op); tp->client = bbc_i2c_attach(bp, op);
if (!tp->client) { if (!tp->client) {
kfree(tp); kfree(tp);
return; return;
...@@ -496,7 +496,7 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct of_device *op, ...@@ -496,7 +496,7 @@ static void attach_one_fan(struct bbc_i2c_bus *bp, struct of_device *op,
if (!fp) if (!fp)
return; return;
fp->client = bbc_i2c_attach(op); fp->client = bbc_i2c_attach(bp, op);
if (!fp->client) { if (!fp->client) {
kfree(fp); kfree(fp);
return; return;
...@@ -529,7 +529,7 @@ int bbc_envctrl_init(struct bbc_i2c_bus *bp) ...@@ -529,7 +529,7 @@ int bbc_envctrl_init(struct bbc_i2c_bus *bp)
int fan_index = 0; int fan_index = 0;
int devidx = 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")) if (!strcmp(op->node->name, "temperature"))
attach_one_temp(bp, op, temp_index++); attach_one_temp(bp, op, temp_index++);
if (!strcmp(op->node->name, "fan-control")) if (!strcmp(op->node->name, "fan-control"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment