[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251016003631.3912523-1-samuel.holland@sifive.com>
Date: Wed, 15 Oct 2025 17:36:25 -0700
From: Samuel Holland <samuel.holland@...ive.com>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>
Cc: Samuel Holland <samuel.holland@...ive.com>,
Paul Walmsley <pjw@...nel.org>,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: [PATCH] gpio: sifive: Support module autoloading
Add MODULE_DEVICE_TABLE() so the driver module can be loaded
automatically based on a compatible string alias.
Signed-off-by: Samuel Holland <samuel.holland@...ive.com>
---
drivers/gpio/gpio-sifive.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c
index 94ef2efbd14f..e9a992cd4b9c 100644
--- a/drivers/gpio/gpio-sifive.c
+++ b/drivers/gpio/gpio-sifive.c
@@ -260,6 +260,7 @@ static const struct of_device_id sifive_gpio_match[] = {
{ .compatible = "sifive,fu540-c000-gpio" },
{ },
};
+MODULE_DEVICE_TABLE(of, sifive_gpio_match);
static struct platform_driver sifive_gpio_driver = {
.probe = sifive_gpio_probe,
--
2.47.2
base-commit: 5a6f65d1502551f84c158789e5d89299c78907c7
branch: up/gpio-autoload
Powered by blists - more mailing lists