提交 fc21acc4 编写于 作者: S Sachin Kamat 提交者: Jonathan Cameron

iio: adc: twl6030-gpadc: Remove redundant of_match_ptr

of_twl6030_match_tbl is always compiled in. Hence of_match_ptr is
not necessary.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 39631b5f
...@@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) ...@@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
int irq; int irq;
int ret; int ret;
match = of_match_device(of_match_ptr(of_twl6030_match_tbl), dev); match = of_match_device(of_twl6030_match_tbl, dev);
if (!match) if (!match)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册