[RESEND PATCH 0/2] powerpc: Fix module autoload for OF platform drivers

STALE3910d

5 messages, 3 authors, 2015-11-26 · open the first message on its own page

[RESEND PATCH 0/2] powerpc: Fix module autoload for OF platform drivers

From: Luis de Bethencourt <hidden>
Date: 2015-10-20 15:04:17

Hi,

This is a resend of this patch series. It was posted on September 18 [0]

These patches add the missing MODULE_DEVICE_TABLE() for OF to export
the information so modules have the correct aliases built-in and
autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Thanks,
Luis

[0] https://lkml.org/lkml/2015/9/18/749
[1] https://lkml.org/lkml/2015/9/18/750
[2] https://lkml.org/lkml/2015/9/18/752

Luis de Bethencourt (2):
  powerpc: platforms: mpc52xx_lpbfifo: Fix module autoload for OF
    platform driver
  powerpc: axonram: Fix module autoload for OF platform driver

 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c | 1 +
 arch/powerpc/sysdev/axonram.c                 | 1 +
 2 files changed, 2 insertions(+)

-- 
2.5.3

[RESEND PATCH 1/2] powerpc: platforms: mpc52xx_lpbfifo: Fix module autoload for OF platform driver

From: Luis de Bethencourt <hidden>
Date: 2015-10-20 15:04:18

From: Luis de Bethencourt <redacted>

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <redacted>
---
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
index 251dcb9..7bb42a0 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
@@ -568,6 +568,7 @@ static const struct of_device_id mpc52xx_lpbfifo_match[] = {
 	{ .compatible = "fsl,mpc5200-lpbfifo", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, mpc52xx_lpbfifo_match);
 
 static struct platform_driver mpc52xx_lpbfifo_driver = {
 	.driver = {
-- 
2.5.3

[RESEND PATCH 2/2] powerpc: axonram: Fix module autoload for OF platform driver

From: Luis de Bethencourt <hidden>
Date: 2015-10-20 15:04:33

From: Luis de Bethencourt <redacted>

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <redacted>
---
 arch/powerpc/sysdev/axonram.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c
index d2b79bc..51b41c9 100644
--- a/arch/powerpc/sysdev/axonram.c
+++ b/arch/powerpc/sysdev/axonram.c
@@ -312,6 +312,7 @@ static const struct of_device_id axon_ram_device_id[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, axon_ram_device_id);
 
 static struct platform_driver axon_ram_driver = {
 	.probe		= axon_ram_probe,
-- 
2.5.3

Re: [RESEND PATCH 1/2] powerpc: platforms: mpc52xx_lpbfifo: Fix module autoload for OF platform driver

From: Anatolij Gustschin <agust@denx.de>
Date: 2015-10-22 12:23:20

On Tue, 20 Oct 2015 16:04:12 +0100
Luis de Bethencourt [off-list ref] wrote:
From: Luis de Bethencourt <redacted>

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <redacted>
---
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c | 1 +
 1 file changed, 1 insertion(+)
applied to mpc5xxx/next.

Thanks,

Anatolij

Re: [RESEND, 2/2] powerpc: axonram: Fix module autoload for OF platform driver

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-11-26 12:15:56

On Tue, 2015-20-10 at 15:04:13 UTC, Luis de Bethencourt wrote:
From: Luis de Bethencourt <redacted>

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/b4f8144559e172f792f7fa92

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help