diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-14 23:48:51 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-10-23 11:22:01 -0400 |
commit | 84195b77364af8c7a25631450d9f2cad6f5daa1f (patch) | |
tree | 23cd4e84ff77f233353448e54ef3a5e754976009 | |
parent | 0f54e1e129aa0c0b6fd5763295ef60ea5af13256 (diff) |
mfd: palmas: Remove redundant of_match_ptr
'of_palmas_match_tbl' is always compiled in. Hence of_match_ptr() is
not needed.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/palmas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index ae9147873b4a..d280d789e55a 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c | |||
@@ -403,7 +403,7 @@ static int palmas_i2c_probe(struct i2c_client *i2c, | |||
403 | palmas->dev = &i2c->dev; | 403 | palmas->dev = &i2c->dev; |
404 | palmas->irq = i2c->irq; | 404 | palmas->irq = i2c->irq; |
405 | 405 | ||
406 | match = of_match_device(of_match_ptr(of_palmas_match_tbl), &i2c->dev); | 406 | match = of_match_device(of_palmas_match_tbl, &i2c->dev); |
407 | 407 | ||
408 | if (!match) | 408 | if (!match) |
409 | return -ENODATA; | 409 | return -ENODATA; |