Skip to content

Commit 6b83c85

Browse files
PeterZhu789daeinki
authored andcommitted
drm/exynos: remove redundant of_match_ptr
The driver depends on CONFIG_OF, so it is not necessary to use of_match_ptr here. Even for drivers that do not depend on CONFIG_OF, it's almost always better to leave out the of_match_ptr(), since the only thing it can possibly do is to save a few bytes of .text if a driver can be used both with and without it. Hence we remove of_match_ptr. Signed-off-by: Zhu Wang <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 2e63972 commit 6b83c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/exynos/exynos_drm_gsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,6 @@ struct platform_driver gsc_driver = {
14261426
.name = "exynos-drm-gsc",
14271427
.owner = THIS_MODULE,
14281428
.pm = &gsc_pm_ops,
1429-
.of_match_table = of_match_ptr(exynos_drm_gsc_of_match),
1429+
.of_match_table = exynos_drm_gsc_of_match,
14301430
},
14311431
};

0 commit comments

Comments
 (0)