diff options
author | Daniel Walker <dwalker@fifo99.com> | 2013-09-20 15:46:40 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-31 18:17:12 +0200 |
commit | 5331de0570b95a105b74eff9d39d9a79656743b2 (patch) | |
tree | 9ca002d85f30bd9ee488ffe3ce48cb5a3c61cbad /drivers/edac/octeon_edac-lmc.c | |
parent | e009189ed9f67cecd0f5277b6f972eec996acd4f (diff) | |
download | op-kernel-dev-5331de0570b95a105b74eff9d39d9a79656743b2.zip op-kernel-dev-5331de0570b95a105b74eff9d39d9a79656743b2.tar.gz |
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 <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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/edac/octeon_edac-lmc.c')
-rw-r--r-- | drivers/edac/octeon_edac-lmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/octeon_edac-lmc.c b/drivers/edac/octeon_edac-lmc.c index 93412d6..4881ad0 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; |