mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
0f54e1e129
commit
84195b7736
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue