diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2023-07-24 17:40:42 -0700 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-07-25 12:00:42 +0200 |
commit | 6b4c76ded3582651afca319f2ca58c22ec908529 (patch) | |
tree | 5df81c71189d62aa932008cf2fc1ca3e37261683 /drivers/gpio/gpio-sifive.c | |
parent | 3b5560c8f074aee8839b66093b4d565702a6921d (diff) | |
download | linux-stable-6b4c76ded3582651afca319f2ca58c22ec908529.tar.gz linux-stable-6b4c76ded3582651afca319f2ca58c22ec908529.tar.bz2 linux-stable-6b4c76ded3582651afca319f2ca58c22ec908529.zip |
gpio: sifive: Allow building the driver as a module
This can reduce the kernel image size in multiplatform configurations.
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sifive.c')
-rw-r--r-- | drivers/gpio/gpio-sifive.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index 8033bb8246c6..8decd9b5d229 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -267,4 +267,8 @@ static struct platform_driver sifive_gpio_driver = { .of_match_table = sifive_gpio_match, }, }; -builtin_platform_driver(sifive_gpio_driver) +module_platform_driver(sifive_gpio_driver) + +MODULE_AUTHOR("Yash Shah <yash.shah@sifive.com>"); +MODULE_DESCRIPTION("SiFive GPIO driver"); +MODULE_LICENSE("GPL"); |