From 5331de0570b95a105b74eff9d39d9a79656743b2 Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Fri, 20 Sep 2013 15:46:40 -0700 Subject: [PATCH] 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 Cc: David Daney Cc: Doug Thompson Cc: linux-edac@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/5872/ Signed-off-by: Ralf Baechle --- drivers/edac/octeon_edac-lmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/edac/octeon_edac-lmc.c b/drivers/edac/octeon_edac-lmc.c index 93412d6b3af1..4881ad0b0bd6 100644 --- a/drivers/edac/octeon_edac-lmc.c +++ b/drivers/edac/octeon_edac-lmc.c @@ -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; -- GitLab