Lines Matching refs:op
271 static int __devinit mpc5121_rtc_probe(struct platform_device *op,
282 rtc->regs = of_iomap(op->dev.of_node, 0);
284 dev_err(&op->dev, "%s: couldn't map io space\n", __func__);
289 device_init_wakeup(&op->dev, 1);
291 dev_set_drvdata(&op->dev, rtc);
293 rtc->irq = irq_of_parse_and_map(op->dev.of_node, 1);
295 "mpc5121-rtc", &op->dev);
297 dev_err(&op->dev, "%s: could not request irq: %i\n",
302 rtc->irq_periodic = irq_of_parse_and_map(op->dev.of_node, 0);
304 IRQF_DISABLED, "mpc5121-rtc_upd", &op->dev);
306 dev_err(&op->dev, "%s: could not request irq: %i\n",
313 dev_warn(&op->dev,
318 rtc->rtc = rtc_device_register("mpc5121-rtc", &op->dev,
328 free_irq(rtc->irq_periodic, &op->dev);
331 free_irq(rtc->irq, &op->dev);
341 static int __devexit mpc5121_rtc_remove(struct platform_device *op)
343 struct mpc5121_rtc_data *rtc = dev_get_drvdata(&op->dev);
352 free_irq(rtc->irq, &op->dev);
353 free_irq(rtc->irq_periodic, &op->dev);
356 dev_set_drvdata(&op->dev, NULL);