diff options
Diffstat (limited to 'drivers/edac/ppc4xx_edac.c')
-rw-r--r-- | drivers/edac/ppc4xx_edac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c index f3f9fed06ad7..53519828cc36 100644 --- a/drivers/edac/ppc4xx_edac.c +++ b/drivers/edac/ppc4xx_edac.c | |||
@@ -1027,9 +1027,9 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci, | |||
1027 | 1027 | ||
1028 | /* Initial driver pointers and private data */ | 1028 | /* Initial driver pointers and private data */ |
1029 | 1029 | ||
1030 | mci->dev = &op->dev; | 1030 | mci->pdev = &op->dev; |
1031 | 1031 | ||
1032 | dev_set_drvdata(mci->dev, mci); | 1032 | dev_set_drvdata(mci->pdev, mci); |
1033 | 1033 | ||
1034 | pdata = mci->pvt_info; | 1034 | pdata = mci->pvt_info; |
1035 | 1035 | ||
@@ -1334,7 +1334,7 @@ static int __devinit ppc4xx_edac_probe(struct platform_device *op) | |||
1334 | return 0; | 1334 | return 0; |
1335 | 1335 | ||
1336 | fail1: | 1336 | fail1: |
1337 | edac_mc_del_mc(mci->dev); | 1337 | edac_mc_del_mc(mci->pdev); |
1338 | 1338 | ||
1339 | fail: | 1339 | fail: |
1340 | edac_mc_free(mci); | 1340 | edac_mc_free(mci); |
@@ -1368,7 +1368,7 @@ ppc4xx_edac_remove(struct platform_device *op) | |||
1368 | 1368 | ||
1369 | dcr_unmap(pdata->dcr_host, SDRAM_DCR_RESOURCE_LEN); | 1369 | dcr_unmap(pdata->dcr_host, SDRAM_DCR_RESOURCE_LEN); |
1370 | 1370 | ||
1371 | edac_mc_del_mc(mci->dev); | 1371 | edac_mc_del_mc(mci->pdev); |
1372 | edac_mc_free(mci); | 1372 | edac_mc_free(mci); |
1373 | 1373 | ||
1374 | return 0; | 1374 | return 0; |