mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
This commit is contained in:
parent
ea4e89afed
commit
9525a08b30
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue