drivers: edac: octeon: fix lack of opstate_init
Subsystems (3)
PATCH 1/2 drivers: edac: octeon: fix lack of opstate_init
If the opstate_init() isn't called the driver won't start properly.
I just added it in what appears to be an appropriate place.
Signed-off-by Daniel Walker <[email protected]>
--- drivers/edac/octeon_edac-lmc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/edac/octeon_edac-lmc.c +2 -0
@@ -92,6 +92,8 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev)struct edac_mc_layer layers[1 ];int mc = pdev->id; +opstate_init (); + layers[0 ].type =EDAC_MC_LAYER_CHANNEL ; layers[0 ].size =1 ; layers[0 ].is_virt_csrow = false;
Signature · 1 line
1.8.1.2
Quoted 5 lines · Daniel Walker
If the
opstate_init()isn't called the driver won't start properly.I just added it in what appears to be an appropriate place.
Signed-off-by Daniel Walker <[email protected]>
Makes sense. Unfortunately :-)
Acked-by Ralf Baechle <[email protected]>
EDAC folks - I can funnel this patch through my tree or leave that to you, whatever you prefer. Same for Daniel's other patch.
Ralf