From: Sachin Kamat Date: Tue, 15 Oct 2013 03:48:51 +0000 (+0530) Subject: mfd: palmas: Remove redundant of_match_ptr X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84195b77364af8c7a25631450d9f2cad6f5daa1f;p=linux-beck.git 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 Signed-off-by: Lee Jones --- 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, palmas->dev = &i2c->dev; palmas->irq = i2c->irq; - match = of_match_device(of_match_ptr(of_palmas_match_tbl), &i2c->dev); + match = of_match_device(of_palmas_match_tbl, &i2c->dev); if (!match) return -ENODATA;