Lines Matching refs:op
395 static int __devinit jbusmc_probe(struct platform_device *op,
428 prop = of_get_property(op->dev.of_node, "portid", &len);
436 prop = of_get_property(op->dev.of_node, "memory-control-register-1", &len);
445 p->regs = of_ioremap(&op->resource[0], 0, JBUSMC_REGS_SIZE, "jbusmc");
452 ml = of_get_property(op->dev.of_node, "memory-layout", &p->layout_len);
469 op->dev.of_node->full_name);
471 dev_set_drvdata(&op->dev, p);
479 of_iounmap(&op->resource[0], p->regs, JBUSMC_REGS_SIZE);
678 static int __devinit chmc_probe(struct platform_device *op,
681 struct device_node *dp = op->dev.of_node;
719 p->regs = of_ioremap(&op->resource[0], 0, 0x48, "chmc");
741 dev_set_drvdata(&op->dev, p);
753 static int __devinit us3mc_probe(struct platform_device *op,
757 return chmc_probe(op, match);
759 return jbusmc_probe(op, match);
763 static void __devexit chmc_destroy(struct platform_device *op, struct chmc *p)
766 of_iounmap(&op->resource[0], p->regs, 0x48);
770 static void __devexit jbusmc_destroy(struct platform_device *op, struct jbusmc *p)
773 of_iounmap(&op->resource[0], p->regs, JBUSMC_REGS_SIZE);
777 static int __devexit us3mc_remove(struct platform_device *op)
779 void *p = dev_get_drvdata(&op->dev);
783 chmc_destroy(op, p);
785 jbusmc_destroy(op, p);