Browse Source

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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Sachin Kamat 11 years ago
parent
commit
fc21acc471
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/iio/adc/twl6030-gpadc.c

+ 1 - 1
drivers/iio/adc/twl6030-gpadc.c

@@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
 	int irq;
 	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)
 		return -EINVAL;