]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: rkvdec: Remove of_match_ptr()
authorFabio Estevam <festevam@gmail.com>
Sat, 20 Mar 2021 12:21:52 +0000 (13:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:30:02 +0000 (10:30 +0200)
commit c2357dd9cbafc8ed37156e32c24884cfa8380b2f upstream.

When building with CONFIG_OF not set, the following clang
build warning is seen:

>> drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match' [-Wunused-const-variable]

Fix the warning by removing the unnecessary of_match_ptr().

Reported-by: kernel test robot <lkp@intel.com>
Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/rkvdec/rkvdec.c

index b1507f29fcc56ff3640578bc067a5bc2662c81b7..c8305330b4580be467bd5b5c7d4889a66d601478 100644 (file)
@@ -1072,7 +1072,7 @@ static struct platform_driver rkvdec_driver = {
        .remove = rkvdec_remove,
        .driver = {
                   .name = "rkvdec",
-                  .of_match_table = of_match_ptr(of_rkvdec_match),
+                  .of_match_table = of_rkvdec_match,
                   .pm = &rkvdec_pm_ops,
        },
 };