Skip to contentSkip to conversation

memory: fsl-corenet: Fix module autoload for OF platform driver

PATCH In review Luis de Bethencourt 2 participants 2 messages Sep 17, 2015 Memory controller drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 memory: fsl-corenet: Fix module autoload for OF platform driver

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

---
 drivers/memory/fsl-corenet-cf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/memory/fsl-corenet-cf.c +1 -0
index d708ded..662d050 100644
@@ -61,6 +61,7 @@ static const struct of_device_id ccf_matches[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, ccf_matches);
 
 struct ccf_err_regs {
 	u32 errdet;		/* 0x00 Error Detect Register */
Signature · 1 line
2.4.6
Acked-by on v1 1/2
#1 lore raw
Quoted 14 lines · Luis de Bethencourt

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

---
 drivers/memory/fsl-corenet-cf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/memory/fsl-corenet- renamed from drivers/memory/fsl-corenet-cf.c +0 -0

cf.c
index d708ded..662d050 100644

drivers/memory/fsl-corenet-cf.c static const struct of_device_id ccf_matches[] = { · line 67

Quoted 7 lines
drivers/memory/fsl-corenet-cf.c +1 -0
@@ -61,6 +61,7 @@ static const struct of_device_id ccf_matches[] = {
      },
      {}
 };
+MODULE_DEVICE_TABLE(of, ccf_matches);
 
 struct ccf_err_regs {
      u32 errdet;             /* 0x00 Error Detect Register */

-Scott