video: ssd1307fb: Remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 30 Sep 2013 08:45:31 +0000 (14:15 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 Oct 2013 09:35:44 +0000 (12:35 +0300)
The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/ssd1307fb.c

index 44967c8fef2b5a344d9e6a78e1339e148f2fbd20..f4daa59f0a80bffd9427c957599d47f518c63d57 100644 (file)
@@ -569,7 +569,7 @@ static struct i2c_driver ssd1307fb_driver = {
        .id_table = ssd1307fb_i2c_id,
        .driver = {
                .name = "ssd1307fb",
-               .of_match_table = of_match_ptr(ssd1307fb_of_match),
+               .of_match_table = ssd1307fb_of_match,
                .owner = THIS_MODULE,
        },
 };