Commit 9e69ab41 authored by Olof Johansson's avatar Olof Johansson Committed by Samuel Ortiz

mfd: Fix of_match_node() da9052 arguments

The driver calls of_match_node() with the arguments swapped.
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Tested-by: default avatarYing-Chun Liu <paul.liu@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8ee3c2a7
...@@ -104,7 +104,7 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client, ...@@ -104,7 +104,7 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client,
struct device_node *np = client->dev.of_node; struct device_node *np = client->dev.of_node;
const struct of_device_id *deviceid; const struct of_device_id *deviceid;
deviceid = of_match_node(np, dialog_dt_ids); deviceid = of_match_node(dialog_dt_ids, np);
id = (const struct i2c_device_id *)deviceid->data; id = (const struct i2c_device_id *)deviceid->data;
} }
#endif #endif
......
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