diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-05-07 23:28:37 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-05-08 20:58:21 -0400 |
commit | 9525a08b30b1c8e39578938fc3420ac0b56f3a3d (patch) | |
tree | 7ec620d4cbfa7817e53f982ead1d615cf3c6c1b3 | |
parent | ea4e89afedc7fc64078076eacbcffaaa742baf0d (diff) |
powerpc/windfarm: Fix crash on SMU based machine after i2c conversion
We no longer get the device node in platform_data but instead
where it belongs in struct device, so get it from there instead
of blowing up.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index e2989cef2309..426e810233d7 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c | |||
@@ -204,7 +204,7 @@ static struct wf_sensor_ops wf_sat_ops = { | |||
204 | static int wf_sat_probe(struct i2c_client *client, | 204 | static int wf_sat_probe(struct i2c_client *client, |
205 | const struct i2c_device_id *id) | 205 | const struct i2c_device_id *id) |
206 | { | 206 | { |
207 | struct device_node *dev = client->dev.platform_data; | 207 | struct device_node *dev = client->dev.of_node; |
208 | struct wf_sat *sat; | 208 | struct wf_sat *sat; |
209 | struct wf_sat_sensor *sens; | 209 | struct wf_sat_sensor *sens; |
210 | const u32 *reg; | 210 | const u32 *reg; |