diff mbox

[01/27] UBUNTU: [Upstream] EDAC: Fix compilation of mpc85xx_edac driver

Message ID 2c0ac945898aace7a279062ee0f68e0beda3b347.1339455421.git.bcollins@ubuntu.com
State New
Headers show

Commit Message

Benjamin Collins June 10, 2012, 7:24 p.m. UTC
Sent upstream to EDAC mailing list.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
---
 drivers/edac/mpc85xx_edac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
index 4c40235..40a8c87 100644
--- a/drivers/edac/mpc85xx_edac.c
+++ b/drivers/edac/mpc85xx_edac.c
@@ -980,7 +980,7 @@  static int __devinit mpc85xx_mc_err_probe(struct platform_device *op)
 	layers[1].type = EDAC_MC_LAYER_CHANNEL;
 	layers[1].size = 1;
 	layers[1].is_virt_csrow = false;
-	mci = edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), sizeof(*pdata));
+	mci = edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), layers, sizeof(*pdata));
 	if (!mci) {
 		devres_release_group(&op->dev, mpc85xx_mc_err_probe);
 		return -ENOMEM;