Lines Matching refs:op
62 static int __devinit clock_board_probe(struct platform_device *op,
73 p->clock_freq_regs = of_ioremap(&op->resource[0], 0,
74 resource_size(&op->resource[0]),
81 p->clock_regs = of_ioremap(&op->resource[1], 0,
82 resource_size(&op->resource[1]),
89 if (op->resource[2].flags) {
90 p->clock_ver_reg = of_ioremap(&op->resource[2], 0,
91 resource_size(&op->resource[2]),
110 p->leds_pdev.dev.parent = &op->dev;
128 of_iounmap(&op->resource[2], p->clock_ver_reg,
129 resource_size(&op->resource[2]));
132 of_iounmap(&op->resource[1], p->clock_regs,
133 resource_size(&op->resource[1]));
136 of_iounmap(&op->resource[0], p->clock_freq_regs,
137 resource_size(&op->resource[0]));
160 static int __devinit fhc_probe(struct platform_device *op,
172 if (!strcmp(op->dev.of_node->parent->name, "central"))
175 p->pregs = of_ioremap(&op->resource[0], 0,
176 resource_size(&op->resource[0]),
187 p->board_num = of_getintprop_default(op->dev.of_node, "board#", -1);
206 p->leds_pdev.dev.parent = &op->dev;
243 of_iounmap(&op->resource[0], p->pregs, resource_size(&op->resource[0]));