Skip to content

Commit e6382fc

Browse files
dramforeverBartosz Golaszewski
authored andcommitted
gpio: spacemit: Add missing MODULE_DEVICE_TABLE
The gpio-spacemit-k1 driver can be compiled as a module. Add missing MODULE_DEVICE_TABLE so it can be matched by modalias and automatically loaded by udev. Fixes: d005532 ("gpio: spacemit: add support for K1 SoC") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Reviewed-by: Yixun Lan <dlan@gentoo.org> Link: https://lore.kernel.org/r/20250613-k1-gpio-of-table-v1-1-9015da8fdfdb@iscas.ac.cn Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 72f3795 commit e6382fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpio/gpio-spacemit-k1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ static const struct of_device_id spacemit_gpio_dt_ids[] = {
278278
{ .compatible = "spacemit,k1-gpio" },
279279
{ /* sentinel */ }
280280
};
281+
MODULE_DEVICE_TABLE(of, spacemit_gpio_dt_ids);
281282

282283
static struct platform_driver spacemit_gpio_driver = {
283284
.probe = spacemit_gpio_probe,

0 commit comments

Comments
 (0)