Skip to content

Commit 4940e40

Browse files
PeterZhu789linusw
authored andcommitted
drm/mcde: 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]> Signed-off-by: Linus Walleij <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e5bd91c commit 4940e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/mcde/mcde_dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ static const struct of_device_id mcde_dsi_of_match[] = {
12261226
struct platform_driver mcde_dsi_driver = {
12271227
.driver = {
12281228
.name = "mcde-dsi",
1229-
.of_match_table = of_match_ptr(mcde_dsi_of_match),
1229+
.of_match_table = mcde_dsi_of_match,
12301230
},
12311231
.probe = mcde_dsi_probe,
12321232
.remove_new = mcde_dsi_remove,

0 commit comments

Comments
 (0)