diff options
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/i5000_edac.c | 2 | ||||
-rw-r--r-- | drivers/edac/i5400_edac.c | 2 | ||||
-rw-r--r-- | drivers/edac/mpc85xx_edac.c | 28 | ||||
-rw-r--r-- | drivers/edac/ppc4xx_edac.c | 12 |
4 files changed, 25 insertions, 19 deletions
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c index 996c1bdb5a34..a5cefab8d65d 100644 --- a/drivers/edac/i5000_edac.c +++ b/drivers/edac/i5000_edac.c | |||
@@ -1482,7 +1482,7 @@ static int __devinit i5000_init_one(struct pci_dev *pdev, | |||
1482 | 1482 | ||
1483 | /* wake up device */ | 1483 | /* wake up device */ |
1484 | rc = pci_enable_device(pdev); | 1484 | rc = pci_enable_device(pdev); |
1485 | if (rc == -EIO) | 1485 | if (rc) |
1486 | return rc; | 1486 | return rc; |
1487 | 1487 | ||
1488 | /* now probe and enable the device */ | 1488 | /* now probe and enable the device */ |
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c index 010c1d6526f5..38a9be9e1c7c 100644 --- a/drivers/edac/i5400_edac.c +++ b/drivers/edac/i5400_edac.c | |||
@@ -1348,7 +1348,7 @@ static int __devinit i5400_init_one(struct pci_dev *pdev, | |||
1348 | 1348 | ||
1349 | /* wake up device */ | 1349 | /* wake up device */ |
1350 | rc = pci_enable_device(pdev); | 1350 | rc = pci_enable_device(pdev); |
1351 | if (rc == -EIO) | 1351 | if (rc) |
1352 | return rc; | 1352 | return rc; |
1353 | 1353 | ||
1354 | /* now probe and enable the device */ | 1354 | /* now probe and enable the device */ |
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 1052340e6802..b123bb308a4a 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c | |||
@@ -43,7 +43,7 @@ static u32 orig_pci_err_en; | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | static u32 orig_l2_err_disable; | 45 | static u32 orig_l2_err_disable; |
46 | #ifdef CONFIG_MPC85xx | 46 | #ifdef CONFIG_FSL_SOC_BOOKE |
47 | static u32 orig_hid1[2]; | 47 | static u32 orig_hid1[2]; |
48 | #endif | 48 | #endif |
49 | 49 | ||
@@ -200,7 +200,7 @@ static irqreturn_t mpc85xx_pci_isr(int irq, void *dev_id) | |||
200 | return IRQ_HANDLED; | 200 | return IRQ_HANDLED; |
201 | } | 201 | } |
202 | 202 | ||
203 | static int __devinit mpc85xx_pci_err_probe(struct of_device *op, | 203 | static int __devinit mpc85xx_pci_err_probe(struct platform_device *op, |
204 | const struct of_device_id *match) | 204 | const struct of_device_id *match) |
205 | { | 205 | { |
206 | struct edac_pci_ctl_info *pci; | 206 | struct edac_pci_ctl_info *pci; |
@@ -305,7 +305,7 @@ err: | |||
305 | return res; | 305 | return res; |
306 | } | 306 | } |
307 | 307 | ||
308 | static int mpc85xx_pci_err_remove(struct of_device *op) | 308 | static int mpc85xx_pci_err_remove(struct platform_device *op) |
309 | { | 309 | { |
310 | struct edac_pci_ctl_info *pci = dev_get_drvdata(&op->dev); | 310 | struct edac_pci_ctl_info *pci = dev_get_drvdata(&op->dev); |
311 | struct mpc85xx_pci_pdata *pdata = pci->pvt_info; | 311 | struct mpc85xx_pci_pdata *pdata = pci->pvt_info; |
@@ -503,7 +503,7 @@ static irqreturn_t mpc85xx_l2_isr(int irq, void *dev_id) | |||
503 | return IRQ_HANDLED; | 503 | return IRQ_HANDLED; |
504 | } | 504 | } |
505 | 505 | ||
506 | static int __devinit mpc85xx_l2_err_probe(struct of_device *op, | 506 | static int __devinit mpc85xx_l2_err_probe(struct platform_device *op, |
507 | const struct of_device_id *match) | 507 | const struct of_device_id *match) |
508 | { | 508 | { |
509 | struct edac_device_ctl_info *edac_dev; | 509 | struct edac_device_ctl_info *edac_dev; |
@@ -613,7 +613,7 @@ err: | |||
613 | return res; | 613 | return res; |
614 | } | 614 | } |
615 | 615 | ||
616 | static int mpc85xx_l2_err_remove(struct of_device *op) | 616 | static int mpc85xx_l2_err_remove(struct platform_device *op) |
617 | { | 617 | { |
618 | struct edac_device_ctl_info *edac_dev = dev_get_drvdata(&op->dev); | 618 | struct edac_device_ctl_info *edac_dev = dev_get_drvdata(&op->dev); |
619 | struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; | 619 | struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; |
@@ -647,7 +647,10 @@ static struct of_device_id mpc85xx_l2_err_of_match[] = { | |||
647 | { .compatible = "fsl,mpc8555-l2-cache-controller", }, | 647 | { .compatible = "fsl,mpc8555-l2-cache-controller", }, |
648 | { .compatible = "fsl,mpc8560-l2-cache-controller", }, | 648 | { .compatible = "fsl,mpc8560-l2-cache-controller", }, |
649 | { .compatible = "fsl,mpc8568-l2-cache-controller", }, | 649 | { .compatible = "fsl,mpc8568-l2-cache-controller", }, |
650 | { .compatible = "fsl,mpc8569-l2-cache-controller", }, | ||
650 | { .compatible = "fsl,mpc8572-l2-cache-controller", }, | 651 | { .compatible = "fsl,mpc8572-l2-cache-controller", }, |
652 | { .compatible = "fsl,p1020-l2-cache-controller", }, | ||
653 | { .compatible = "fsl,p1021-l2-cache-controller", }, | ||
651 | { .compatible = "fsl,p2020-l2-cache-controller", }, | 654 | { .compatible = "fsl,p2020-l2-cache-controller", }, |
652 | {}, | 655 | {}, |
653 | }; | 656 | }; |
@@ -953,7 +956,7 @@ static void __devinit mpc85xx_init_csrows(struct mem_ctl_info *mci) | |||
953 | } | 956 | } |
954 | } | 957 | } |
955 | 958 | ||
956 | static int __devinit mpc85xx_mc_err_probe(struct of_device *op, | 959 | static int __devinit mpc85xx_mc_err_probe(struct platform_device *op, |
957 | const struct of_device_id *match) | 960 | const struct of_device_id *match) |
958 | { | 961 | { |
959 | struct mem_ctl_info *mci; | 962 | struct mem_ctl_info *mci; |
@@ -1085,7 +1088,7 @@ err: | |||
1085 | return res; | 1088 | return res; |
1086 | } | 1089 | } |
1087 | 1090 | ||
1088 | static int mpc85xx_mc_err_remove(struct of_device *op) | 1091 | static int mpc85xx_mc_err_remove(struct platform_device *op) |
1089 | { | 1092 | { |
1090 | struct mem_ctl_info *mci = dev_get_drvdata(&op->dev); | 1093 | struct mem_ctl_info *mci = dev_get_drvdata(&op->dev); |
1091 | struct mpc85xx_mc_pdata *pdata = mci->pvt_info; | 1094 | struct mpc85xx_mc_pdata *pdata = mci->pvt_info; |
@@ -1125,7 +1128,10 @@ static struct of_device_id mpc85xx_mc_err_of_match[] = { | |||
1125 | { .compatible = "fsl,mpc8569-memory-controller", }, | 1128 | { .compatible = "fsl,mpc8569-memory-controller", }, |
1126 | { .compatible = "fsl,mpc8572-memory-controller", }, | 1129 | { .compatible = "fsl,mpc8572-memory-controller", }, |
1127 | { .compatible = "fsl,mpc8349-memory-controller", }, | 1130 | { .compatible = "fsl,mpc8349-memory-controller", }, |
1131 | { .compatible = "fsl,p1020-memory-controller", }, | ||
1132 | { .compatible = "fsl,p1021-memory-controller", }, | ||
1128 | { .compatible = "fsl,p2020-memory-controller", }, | 1133 | { .compatible = "fsl,p2020-memory-controller", }, |
1134 | { .compatible = "fsl,p4080-memory-controller", }, | ||
1129 | {}, | 1135 | {}, |
1130 | }; | 1136 | }; |
1131 | MODULE_DEVICE_TABLE(of, mpc85xx_mc_err_of_match); | 1137 | MODULE_DEVICE_TABLE(of, mpc85xx_mc_err_of_match); |
@@ -1140,7 +1146,7 @@ static struct of_platform_driver mpc85xx_mc_err_driver = { | |||
1140 | }, | 1146 | }, |
1141 | }; | 1147 | }; |
1142 | 1148 | ||
1143 | #ifdef CONFIG_MPC85xx | 1149 | #ifdef CONFIG_FSL_SOC_BOOKE |
1144 | static void __init mpc85xx_mc_clear_rfxe(void *data) | 1150 | static void __init mpc85xx_mc_clear_rfxe(void *data) |
1145 | { | 1151 | { |
1146 | orig_hid1[smp_processor_id()] = mfspr(SPRN_HID1); | 1152 | orig_hid1[smp_processor_id()] = mfspr(SPRN_HID1); |
@@ -1179,7 +1185,7 @@ static int __init mpc85xx_mc_init(void) | |||
1179 | printk(KERN_WARNING EDAC_MOD_STR "PCI fails to register\n"); | 1185 | printk(KERN_WARNING EDAC_MOD_STR "PCI fails to register\n"); |
1180 | #endif | 1186 | #endif |
1181 | 1187 | ||
1182 | #ifdef CONFIG_MPC85xx | 1188 | #ifdef CONFIG_FSL_SOC_BOOKE |
1183 | /* | 1189 | /* |
1184 | * need to clear HID1[RFXE] to disable machine check int | 1190 | * need to clear HID1[RFXE] to disable machine check int |
1185 | * so we can catch it | 1191 | * so we can catch it |
@@ -1193,7 +1199,7 @@ static int __init mpc85xx_mc_init(void) | |||
1193 | 1199 | ||
1194 | module_init(mpc85xx_mc_init); | 1200 | module_init(mpc85xx_mc_init); |
1195 | 1201 | ||
1196 | #ifdef CONFIG_MPC85xx | 1202 | #ifdef CONFIG_FSL_SOC_BOOKE |
1197 | static void __exit mpc85xx_mc_restore_hid1(void *data) | 1203 | static void __exit mpc85xx_mc_restore_hid1(void *data) |
1198 | { | 1204 | { |
1199 | mtspr(SPRN_HID1, orig_hid1[smp_processor_id()]); | 1205 | mtspr(SPRN_HID1, orig_hid1[smp_processor_id()]); |
@@ -1202,7 +1208,7 @@ static void __exit mpc85xx_mc_restore_hid1(void *data) | |||
1202 | 1208 | ||
1203 | static void __exit mpc85xx_mc_exit(void) | 1209 | static void __exit mpc85xx_mc_exit(void) |
1204 | { | 1210 | { |
1205 | #ifdef CONFIG_MPC85xx | 1211 | #ifdef CONFIG_FSL_SOC_BOOKE |
1206 | on_each_cpu(mpc85xx_mc_restore_hid1, NULL, 0); | 1212 | on_each_cpu(mpc85xx_mc_restore_hid1, NULL, 0); |
1207 | #endif | 1213 | #endif |
1208 | #ifdef CONFIG_PCI | 1214 | #ifdef CONFIG_PCI |
diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c index e78839e89a06..070cea41b661 100644 --- a/drivers/edac/ppc4xx_edac.c +++ b/drivers/edac/ppc4xx_edac.c | |||
@@ -184,9 +184,9 @@ struct ppc4xx_ecc_status { | |||
184 | 184 | ||
185 | /* Function Prototypes */ | 185 | /* Function Prototypes */ |
186 | 186 | ||
187 | static int ppc4xx_edac_probe(struct of_device *device, | 187 | static int ppc4xx_edac_probe(struct platform_device *device, |
188 | const struct of_device_id *device_id); | 188 | const struct of_device_id *device_id); |
189 | static int ppc4xx_edac_remove(struct of_device *device); | 189 | static int ppc4xx_edac_remove(struct platform_device *device); |
190 | 190 | ||
191 | /* Global Variables */ | 191 | /* Global Variables */ |
192 | 192 | ||
@@ -1014,7 +1014,7 @@ ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1) | |||
1014 | */ | 1014 | */ |
1015 | static int __devinit | 1015 | static int __devinit |
1016 | ppc4xx_edac_mc_init(struct mem_ctl_info *mci, | 1016 | ppc4xx_edac_mc_init(struct mem_ctl_info *mci, |
1017 | struct of_device *op, | 1017 | struct platform_device *op, |
1018 | const struct of_device_id *match, | 1018 | const struct of_device_id *match, |
1019 | const dcr_host_t *dcr_host, | 1019 | const dcr_host_t *dcr_host, |
1020 | u32 mcopt1) | 1020 | u32 mcopt1) |
@@ -1108,7 +1108,7 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci, | |||
1108 | * mapped and assigned. | 1108 | * mapped and assigned. |
1109 | */ | 1109 | */ |
1110 | static int __devinit | 1110 | static int __devinit |
1111 | ppc4xx_edac_register_irq(struct of_device *op, struct mem_ctl_info *mci) | 1111 | ppc4xx_edac_register_irq(struct platform_device *op, struct mem_ctl_info *mci) |
1112 | { | 1112 | { |
1113 | int status = 0; | 1113 | int status = 0; |
1114 | int ded_irq, sec_irq; | 1114 | int ded_irq, sec_irq; |
@@ -1238,7 +1238,7 @@ ppc4xx_edac_map_dcrs(const struct device_node *np, dcr_host_t *dcr_host) | |||
1238 | * driver; otherwise, < 0 on error. | 1238 | * driver; otherwise, < 0 on error. |
1239 | */ | 1239 | */ |
1240 | static int __devinit | 1240 | static int __devinit |
1241 | ppc4xx_edac_probe(struct of_device *op, const struct of_device_id *match) | 1241 | ppc4xx_edac_probe(struct platform_device *op, const struct of_device_id *match) |
1242 | { | 1242 | { |
1243 | int status = 0; | 1243 | int status = 0; |
1244 | u32 mcopt1, memcheck; | 1244 | u32 mcopt1, memcheck; |
@@ -1359,7 +1359,7 @@ ppc4xx_edac_probe(struct of_device *op, const struct of_device_id *match) | |||
1359 | * Unconditionally returns 0. | 1359 | * Unconditionally returns 0. |
1360 | */ | 1360 | */ |
1361 | static int | 1361 | static int |
1362 | ppc4xx_edac_remove(struct of_device *op) | 1362 | ppc4xx_edac_remove(struct platform_device *op) |
1363 | { | 1363 | { |
1364 | struct mem_ctl_info *mci = dev_get_drvdata(&op->dev); | 1364 | struct mem_ctl_info *mci = dev_get_drvdata(&op->dev); |
1365 | struct ppc4xx_edac_pdata *pdata = mci->pvt_info; | 1365 | struct ppc4xx_edac_pdata *pdata = mci->pvt_info; |