diff options
Diffstat (limited to 'drivers/edac/mpc85xx_edac.c')
-rw-r--r-- | drivers/edac/mpc85xx_edac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index a15141025a94..4c402353ba98 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c | |||
@@ -980,8 +980,7 @@ static int __devinit mpc85xx_mc_err_probe(struct platform_device *op) | |||
980 | layers[1].type = EDAC_MC_LAYER_CHANNEL; | 980 | layers[1].type = EDAC_MC_LAYER_CHANNEL; |
981 | layers[1].size = 1; | 981 | layers[1].size = 1; |
982 | layers[1].is_virt_csrow = false; | 982 | layers[1].is_virt_csrow = false; |
983 | mci = new_edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), layers, | 983 | mci = edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), sizeof(*pdata)); |
984 | sizeof(*pdata)); | ||
985 | if (!mci) { | 984 | if (!mci) { |
986 | devres_release_group(&op->dev, mpc85xx_mc_err_probe); | 985 | devres_release_group(&op->dev, mpc85xx_mc_err_probe); |
987 | return -ENOMEM; | 986 | return -ENOMEM; |