Skip to content

Commit e5bd91c

Browse files
PeterZhu789linusw
authored andcommitted
drm/tve200: 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 82d750e commit e5bd91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tve200/tve200_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static const struct of_device_id tve200_of_match[] = {
259259
static struct platform_driver tve200_driver = {
260260
.driver = {
261261
.name = "tve200",
262-
.of_match_table = of_match_ptr(tve200_of_match),
262+
.of_match_table = tve200_of_match,
263263
},
264264
.probe = tve200_probe,
265265
.remove_new = tve200_remove,

0 commit comments

Comments
 (0)