]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fpga: versal: remove incorrect of_match_ptr annotation
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 16:35:07 +0000 (17:35 +0100)
committerXu Yilun <yilun.xu@linux.intel.com>
Sat, 1 Mar 2025 09:37:31 +0000 (17:37 +0800)
Building with W=1 shows a warning about versal_fpga_of_match being unused when
CONFIG_OF is disabled:

    drivers/fpga/versal-fpga.c:62:34: error: unused variable 'versal_fpga_of_match' [-Werror,-Wunused-const-variable]

Acked-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250225163510.4168911-1-arnd@kernel.org
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/versal-fpga.c

index 3710e8f01be25de67e79338a963cc825ab2fea5f..e6189106c4686930c3e7d61d0ca2e2ecbfb2c6c1 100644 (file)
@@ -69,7 +69,7 @@ static struct platform_driver versal_fpga_driver = {
        .probe = versal_fpga_probe,
        .driver = {
                .name = "versal_fpga_manager",
-               .of_match_table = of_match_ptr(versal_fpga_of_match),
+               .of_match_table = versal_fpga_of_match,
        },
 };
 module_platform_driver(versal_fpga_driver);