Skip to content

Commit

Permalink
mfd: Fix of_match_node() da9052 arguments
Browse files Browse the repository at this point in the history
The driver calls of_match_node() with the arguments swapped.

Signed-off-by: Olof Johansson <[email protected]>
Tested-by: Ying-Chun Liu <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
olofj authored and Samuel Ortiz committed May 9, 2012
1 parent 8ee3c2a commit 9e69ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/da9052-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client,
struct device_node *np = client->dev.of_node;
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;
}
#endif
Expand Down

0 comments on commit 9e69ab4

Please sign in to comment.