linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] pinctrl: bcm2835: fix module autoloading
@ 2024-08-20 12:26 Liao Chen
  2024-08-20 21:16 ` Florian Fainelli
  2024-08-24 14:47 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Liao Chen @ 2024-08-20 12:26 UTC (permalink / raw)
  To: linux-gpio, linux-rpi-kernel, linux-arm-kernel
  Cc: linux-kernel, linus.walleij, florian.fainelli,
	bcm-kernel-feedback-list, rjui, sbranden, wahrenst, wens

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
index 184641e221d4..cc1fe0555e19 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
@@ -1280,6 +1280,7 @@ static const struct of_device_id bcm2835_pinctrl_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, bcm2835_pinctrl_match);
 
 static int bcm2835_pinctrl_probe(struct platform_device *pdev)
 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] pinctrl: bcm2835: fix module autoloading
  2024-08-20 12:26 [PATCH -next] pinctrl: bcm2835: fix module autoloading Liao Chen
@ 2024-08-20 21:16 ` Florian Fainelli
  2024-08-24 14:47 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2024-08-20 21:16 UTC (permalink / raw)
  To: Liao Chen, linux-gpio, linux-rpi-kernel, linux-arm-kernel
  Cc: linux-kernel, linus.walleij, bcm-kernel-feedback-list, rjui,
	sbranden, wahrenst, wens

On 8/20/24 05:26, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>

Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] pinctrl: bcm2835: fix module autoloading
  2024-08-20 12:26 [PATCH -next] pinctrl: bcm2835: fix module autoloading Liao Chen
  2024-08-20 21:16 ` Florian Fainelli
@ 2024-08-24 14:47 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2024-08-24 14:47 UTC (permalink / raw)
  To: Liao Chen
  Cc: linux-gpio, linux-rpi-kernel, linux-arm-kernel, linux-kernel,
	florian.fainelli, bcm-kernel-feedback-list, rjui, sbranden,
	wahrenst, wens

On Tue, Aug 20, 2024 at 2:34 PM Liao Chen <liaochen4@huawei.com> wrote:

> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-24 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 12:26 [PATCH -next] pinctrl: bcm2835: fix module autoloading Liao Chen
2024-08-20 21:16 ` Florian Fainelli
2024-08-24 14:47 ` Linus Walleij

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).