Skip to contentSkip to conversation

mfd: upboard-fpga: Remove ACPI_PTR() annotation

PATCH Applied Andy Shevchenko 2 participants 2 messages Feb 5, 2025 – Feb 11, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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.

---
 drivers/mfd/upboard-fpga.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/upboard-fpga.c +1 -2
index 1f6131126547..6696c82ca4dd 100644
@@ -11,7 +11,6 @@
  * Author: Thomas Richard <[email protected]>
  */
 
-#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,
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
maintainer Applied
#1 lore raw

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

Quoted 4 lines · Andy Shevchenko

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.

Applied, thanks!

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

      commit: 22e8cd7693c65775147be81e8ed39a52305f6fc6

--
Lee Jones [李琼斯]