memory: fsl-corenet: Fix module autoload for OF platform driver
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.
Signed-off-by Luis de Bethencourt <[email protected]>
--- drivers/memory/fsl-corenet-cf.c | 1 + 1 file changed, 1 insertion(+)
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 */
Signature · 1 line
2.4.6
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.
Signed-off-by Luis de Bethencourt <[email protected]>--- 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 */
Acked-by Scott Wood <[email protected]>
-Scott