mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: d00553240e
("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>
This commit is contained in:
parent
72f3795700
commit
e6382fcf98
1 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ static const struct of_device_id spacemit_gpio_dt_ids[] = {
|
|||
{ .compatible = "spacemit,k1-gpio" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, spacemit_gpio_dt_ids);
|
||||
|
||||
static struct platform_driver spacemit_gpio_driver = {
|
||||
.probe = spacemit_gpio_probe,
|
||||
|
|
Loading…
Add table
Reference in a new issue