]> Pileus Git - ~andy/linux/commitdiff
iio: adc: twl6030-gpadc: Remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 21 Oct 2013 08:25:00 +0000 (09:25 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Oct 2013 16:51:24 +0000 (17:51 +0100)
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>
drivers/iio/adc/twl6030-gpadc.c

index 0ea96c058c0880016de8ec9c1b01b9f20c0cd9b0..2edfc7bd4f630fe7ca00954e74e5dd5f661c7458 100644 (file)
@@ -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;