* [PATCH] gpio: lpc32xx: fix module autoloading
@ 2024-04-10 17:03 Krzysztof Kozlowski
2024-04-12 19:31 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-10 17:03 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Vladimir Zapolskiy,
linux-gpio, linux-arm-kernel, linux-kernel
Cc: Krzysztof Kozlowski
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>
---
drivers/gpio/gpio-lpc32xx.c | 1 +
1 file changed, 1 insertion(+)
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 = {
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: lpc32xx: fix module autoloading
2024-04-10 17:03 [PATCH] gpio: lpc32xx: fix module autoloading Krzysztof Kozlowski
@ 2024-04-12 19:31 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2024-04-12 19:31 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Linus Walleij, Vladimir Zapolskiy, linux-gpio, linux-arm-kernel,
linux-kernel
On Wed, Apr 10, 2024 at 7:03 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> 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>
> ---
> drivers/gpio/gpio-lpc32xx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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 = {
> --
> 2.34.1
>
Queued for fixes, thanks!
Bart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-12 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-10 17:03 [PATCH] gpio: lpc32xx: fix module autoloading Krzysztof Kozlowski
2024-04-12 19:31 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).