Commit 6b4c76de authored by Samuel Holland's avatar Samuel Holland Committed by Bartosz Golaszewski
Browse files

gpio: sifive: Allow building the driver as a module



This can reduce the kernel image size in multiplatform configurations.

Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarSamuel Holland <samuel.holland@sifive.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 3b5560c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -564,7 +564,7 @@ config GPIO_SAMA5D2_PIOBU
	  maintain their value during backup/self-refresh.

config GPIO_SIFIVE
	bool "SiFive GPIO support"
	tristate "SiFive GPIO support"
	depends on OF_GPIO
	select IRQ_DOMAIN_HIERARCHY
	select GPIO_GENERIC
+5 −1
Original line number Diff line number Diff line
@@ -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");