summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-05-05 23:02:48 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-09 14:09:32 (GMT)
commit9e69ab4116668be1e327d164d6a27c8605b0aabb (patch)
tree3968959000703291ac1d8041d05bd934750feafd /drivers/mfd
parent8ee3c2a79fe1df10bccd110d5b8cc13c5b9da709 (diff)
downloadlinux-9e69ab4116668be1e327d164d6a27c8605b0aabb.tar.xz
mfd: Fix of_match_node() da9052 arguments
The driver calls of_match_node() with the arguments swapped. Signed-off-by: Olof Johansson <olof@lixom.net> Tested-by: Ying-Chun Liu <paul.liu@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/da9052-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c
index d8abdb3..8410065f1 100644
--- a/drivers/mfd/da9052-i2c.c
+++ b/drivers/mfd/da9052-i2c.c
@@ -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