Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84195b77 authored by Sachin Kamat's avatar Sachin Kamat Committed by Lee Jones
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 0f54e1e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -403,7 +403,7 @@ static int palmas_i2c_probe(struct i2c_client *i2c,
	palmas->dev = &i2c->dev;
	palmas->dev = &i2c->dev;
	palmas->irq = i2c->irq;
	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)
	if (!match)
		return -ENODATA;
		return -ENODATA;