linux-mips
[Top] [All Lists]

[PATCH 1/2] drivers: edac: octeon: fix lack of opstate_init

To: Ralf Baechle <ralf@linux-mips.org>, David Daney <david.daney@cavium.com>, Doug Thompson <dougthompson@xmission.com>
Subject: [PATCH 1/2] drivers: edac: octeon: fix lack of opstate_init
From: Daniel Walker <dwalker@fifo99.com>
Date: Fri, 20 Sep 2013 15:46:40 -0700
Cc: linux-edac@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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>
---
 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 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;
-- 
1.8.1.2


<Prev in Thread] Current Thread [Next in Thread>