]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mfd: upboard-fpga: Remove ACPI_PTR() annotation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Feb 2025 12:25:36 +0000 (14:25 +0200)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:06 +0000 (08:59 +0000)
The ACPI ID table is defined globally without an #ifdef check for CONFIG_ACPI,
so ACPI_PTR() makes no sense here. Also note, driver depends on ACPI anyway.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250205122536.631252-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/upboard-fpga.c

index 5a330e2f2229f02aac81ab6d900e1d05d406ff9a..afce623bbba51c7777c0d695263009bba58140e1 100644 (file)
@@ -11,7 +11,6 @@
  * Author: Thomas Richard <thomas.richard@bootlin.com>
  */
 
-#include <linux/acpi.h>
 #include <linux/bitfield.h>
 #include <linux/device.h>
 #include <linux/err.h>
@@ -311,7 +310,7 @@ MODULE_DEVICE_TABLE(acpi, upboard_fpga_acpi_match);
 static struct platform_driver upboard_fpga_driver = {
        .driver = {
                .name = "upboard-fpga",
-               .acpi_match_table = ACPI_PTR(upboard_fpga_acpi_match),
+               .acpi_match_table = upboard_fpga_acpi_match,
                .dev_groups     = upboard_fpga_groups,
        },
        .probe = upboard_fpga_probe,