Lines Matching refs:op
203 static int __devinit mpc85xx_pci_err_probe(struct platform_device *op,
211 if (!devres_open_group(&op->dev, mpc85xx_pci_err_probe, GFP_KERNEL))
221 dev_set_drvdata(&op->dev, pci);
222 pci->dev = &op->dev;
225 pci->dev_name = dev_name(&op->dev);
232 res = of_address_to_resource(op->dev.of_node, 0, &r);
242 if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r),
250 pdata->pci_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r));
277 pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
278 res = devm_request_irq(&op->dev, pdata->irq,
294 devres_remove_group(&op->dev, mpc85xx_pci_err_probe);
301 edac_pci_del_device(&op->dev);
304 devres_release_group(&op->dev, mpc85xx_pci_err_probe);
308 static int mpc85xx_pci_err_remove(struct platform_device *op)
310 struct edac_pci_ctl_info *pci = dev_get_drvdata(&op->dev);
506 static int __devinit mpc85xx_l2_err_probe(struct platform_device *op,
514 if (!devres_open_group(&op->dev, mpc85xx_l2_err_probe, GFP_KERNEL))
521 devres_release_group(&op->dev, mpc85xx_l2_err_probe);
528 edac_dev->dev = &op->dev;
533 res = of_address_to_resource(op->dev.of_node, 0, &r);
543 if (!devm_request_mem_region(&op->dev, r.start,
551 pdata->l2_vbase = devm_ioremap(&op->dev, r.start, r.end - r.start + 1);
580 pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
581 res = devm_request_irq(&op->dev, pdata->irq,
601 devres_remove_group(&op->dev, mpc85xx_l2_err_probe);
609 edac_device_del_device(&op->dev);
611 devres_release_group(&op->dev, mpc85xx_l2_err_probe);
616 static int mpc85xx_l2_err_remove(struct platform_device *op)
618 struct edac_device_ctl_info *edac_dev = dev_get_drvdata(&op->dev);
629 edac_device_del_device(&op->dev);
959 static int __devinit mpc85xx_mc_err_probe(struct platform_device *op,
968 if (!devres_open_group(&op->dev, mpc85xx_mc_err_probe, GFP_KERNEL))
973 devres_release_group(&op->dev, mpc85xx_mc_err_probe);
980 mci->dev = &op->dev;
986 res = of_address_to_resource(op->dev.of_node, 0, &r);
993 if (!devm_request_mem_region(&op->dev, r.start,
1001 pdata->mc_vbase = devm_ioremap(&op->dev, r.start, r.end - r.start + 1);
1060 pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0);
1061 res = devm_request_irq(&op->dev, pdata->irq,
1077 devres_remove_group(&op->dev, mpc85xx_mc_err_probe);
1084 edac_mc_del_mc(&op->dev);
1086 devres_release_group(&op->dev, mpc85xx_mc_err_probe);
1091 static int mpc85xx_mc_err_remove(struct platform_device *op)
1093 struct mem_ctl_info *mci = dev_get_drvdata(&op->dev);
1107 edac_mc_del_mc(&op->dev);