From: Fabio Estevam Date: Sat, 20 Mar 2021 12:21:52 +0000 (+0100) Subject: media: rkvdec: Remove of_match_ptr() X-Git-Tag: v5.13-rc1~124^2~243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2357dd9cbafc8ed37156e32c24884cfa8380b2f;p=thirdparty%2Fkernel%2Flinux.git media: rkvdec: Remove of_match_ptr() 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 Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver") Signed-off-by: Fabio Estevam Reviewed-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index d3eb81ee8dc27..02af95e15ca95 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -1118,7 +1118,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, }, };