[PATCH v1 1/1] mfd: upboard-fpga: Remove ACPI_PTR() annotation

From: Andy Shevchenko
Date: Wed Feb 05 2025 - 07:25:46 EST


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@xxxxxxxxxxxxxxx>
---
drivers/mfd/upboard-fpga.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mfd/upboard-fpga.c b/drivers/mfd/upboard-fpga.c
index 1f6131126547..6696c82ca4dd 100644
--- a/drivers/mfd/upboard-fpga.c
+++ b/drivers/mfd/upboard-fpga.c
@@ -11,7 +11,6 @@
* Author: Thomas Richard <thomas.richard@xxxxxxxxxxx>
*/

-#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,
--
2.43.0.rc1.1336.g36b5255a03ac