diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2024-04-10 19:03:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-17 12:02:19 +0200 |
commit | ca6b0d99cda04f4644d9c0f268f7a9be0f25db80 (patch) | |
tree | 32d17612c9f2765278fb5ec74fade691e0225660 /drivers/gpio/gpio-lpc32xx.c | |
parent | 1f9c976e942bd315a05844fba261da12211e0b01 (diff) | |
download | linux-ca6b0d99cda04f4644d9c0f268f7a9be0f25db80.tar.gz linux-ca6b0d99cda04f4644d9c0f268f7a9be0f25db80.tar.bz2 linux-ca6b0d99cda04f4644d9c0f268f7a9be0f25db80.zip |
gpio: lpc32xx: fix module autoloading
[ Upstream commit 11baa36d317321f5d54059f07d243c5a1dbbfbb2 ]
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 <krzk@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpio/gpio-lpc32xx.c')
-rw-r--r-- | drivers/gpio/gpio-lpc32xx.c | 1 |
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 = { |