Since commit 9739e07fdb29 ("nfc: Drop __maybe_unused from of_device_id tables") the OF match table relies on its MODULE_DEVICE_TABLE() reference to count as used, while of_match_ptr() still discards the .of_match_table reference on !CONFIG_OF builds. Drop of_match_ptr() so every configuration uses the same code; the S3NRN4V support added later in this series carries its variant selector in this table's match data. Assisted-by: Claude:claude-fable-5 Assisted-by: Claude:claude-opus-5 Signed-off-by: Jorijn van der Graaf --- drivers/nfc/s3fwrn5/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index 4ba762611711..cb73993446e0 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -219,7 +219,7 @@ MODULE_DEVICE_TABLE(of, of_s3fwrn5_i2c_match); static struct i2c_driver s3fwrn5_i2c_driver = { .driver = { .name = S3FWRN5_I2C_DRIVER_NAME, - .of_match_table = of_match_ptr(of_s3fwrn5_i2c_match), + .of_match_table = of_s3fwrn5_i2c_match, }, .probe = s3fwrn5_i2c_probe, .remove = s3fwrn5_i2c_remove, -- 2.55.0