This is a DT only driver and exynos_gsc_match is always compiled
in. Hence of_match_ptr is unnecessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
 
        if (pdev->dev.of_node) {
                const struct of_device_id *match;
-               match = of_match_node(of_match_ptr(exynos_gsc_match),
+               match = of_match_node(exynos_gsc_match,
                                        pdev->dev.of_node);
                if (match)
                        driver_data = (struct gsc_driverdata *)match->data;