]> Pileus Git - ~andy/linux/commitdiff
mfd: palmas: Remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 15 Oct 2013 03:48:51 +0000 (09:18 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:22:01 +0000 (16:22 +0100)
'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>
drivers/mfd/palmas.c

index ae9147873b4af9cdeeeba0351d12723b064e6295..d280d789e55a5cc0a60896eee95ad8de3ee1dac8 100644 (file)
@@ -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;