]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/windfarm: Fix crash on SMU based machine after i2c conversion
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 May 2012 03:28:37 +0000 (13:28 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 May 2012 00:58:21 +0000 (10:58 +1000)
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>
drivers/macintosh/windfarm_smu_sat.c

index e2989cef2309edbb761ab22424f306bc3d7332b6..426e810233d7403595474f2a1e1ffa810daa141f 100644 (file)
@@ -204,7 +204,7 @@ static struct wf_sensor_ops wf_sat_ops = {
 static int wf_sat_probe(struct i2c_client *client,
                        const struct i2c_device_id *id)
 {
-       struct device_node *dev = client->dev.platform_data;
+       struct device_node *dev = client->dev.of_node;
        struct wf_sat *sat;
        struct wf_sat_sensor *sens;
        const u32 *reg;