aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2024-04-10 17:03:05 +0000
committerBartosz Golaszewski <[email protected]>2024-04-12 19:30:58 +0000
commit11baa36d317321f5d54059f07d243c5a1dbbfbb2 (patch)
treeb6e7eda1d6b72c472db9a2ad4ba72edee50746a8
parentMerge tag 'intel-gpio-v6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-11baa36d317321f5d54059f07d243c5a1dbbfbb2.tar.gz
kernel-11baa36d317321f5d54059f07d243c5a1dbbfbb2.zip
gpio: lpc32xx: fix module autoloading
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r--drivers/gpio/gpio-lpc32xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c
index 5ef8af824980..c097e310c9e8 100644
--- a/drivers/gpio/gpio-lpc32xx.c
+++ b/drivers/gpio/gpio-lpc32xx.c
@@ -529,6 +529,7 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = {
{ .compatible = "nxp,lpc3220-gpio", },
{ },
};
+MODULE_DEVICE_TABLE(of, lpc32xx_gpio_of_match);
static struct platform_driver lpc32xx_gpio_driver = {
.driver = {