Commit 5331de05 authored by Daniel Walker's avatar Daniel Walker Committed by Ralf Baechle

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: default avatarDaniel Walker <dwalker@fifo99.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Doug Thompson <dougthompson@xmission.com>
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: default avatarRalf Baechle <ralf@linux-mips.org>
parent e009189e
...@@ -92,6 +92,8 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev) ...@@ -92,6 +92,8 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev)
struct edac_mc_layer layers[1]; struct edac_mc_layer layers[1];
int mc = pdev->id; int mc = pdev->id;
opstate_init();
layers[0].type = EDAC_MC_LAYER_CHANNEL; layers[0].type = EDAC_MC_LAYER_CHANNEL;
layers[0].size = 1; layers[0].size = 1;
layers[0].is_virt_csrow = false; layers[0].is_virt_csrow = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment