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 <[email protected]> Reviewed-by: Yixun Lan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 72f3795 commit e6382fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)