[PATCH v3 06/23] mfd: rt4831: Drop irrelevant __maybe_unused
From: Uwe Kleine-König (The Capable Hub)
Date: Thu Jul 09 2026 - 13:03:43 EST
Since commit 5ab23c7923a1 ("modpost: Create modalias for builtin
modules") MODULE_DEVICE_TABLE() is enough to reference a device id array
even if the driver is built-in. So rt4831_of_match[] is always used and the
__maybe_unused marker serves no purpose and can be dropped.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/mfd/rt4831.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/rt4831.c b/drivers/mfd/rt4831.c
index 1ab8870e4ebf..2b3f84b81c65 100644
--- a/drivers/mfd/rt4831.c
+++ b/drivers/mfd/rt4831.c
@@ -98,7 +98,7 @@ static void rt4831_remove(struct i2c_client *client)
dev_warn(&client->dev, "Failed to disable outputs (%pe)\n", ERR_PTR(ret));
}
-static const struct of_device_id __maybe_unused rt4831_of_match[] = {
+static const struct of_device_id rt4831_of_match[] = {
{ .compatible = "richtek,rt4831", },
{}
};
--
2.55.0.11.g153666a7d9bb