Lines Matching defs:op
187 static int __devinit bbc_beep_probe(struct platform_device *op, const struct of_device_id *match)
212 info->regs = of_ioremap(&op->resource[0], 0, 6, "bbc beep");
216 dev_set_drvdata(&op->dev, state);
218 err = sparcspkr_probe(&op->dev);
225 dev_set_drvdata(&op->dev, NULL);
226 of_iounmap(&op->resource[0], info->regs, 6);
234 static int __devexit bbc_remove(struct platform_device *op)
236 struct sparcspkr_state *state = dev_get_drvdata(&op->dev);
245 of_iounmap(&op->resource[0], info->regs, 6);
247 dev_set_drvdata(&op->dev, NULL);
272 static int __devinit grover_beep_probe(struct platform_device *op, const struct of_device_id *match)
287 info->freq_regs = of_ioremap(&op->resource[2], 0, 2, "grover beep freq");
291 info->enable_reg = of_ioremap(&op->resource[3], 0, 1, "grover beep enable");
295 dev_set_drvdata(&op->dev, state);
297 err = sparcspkr_probe(&op->dev);
304 dev_set_drvdata(&op->dev, NULL);
305 of_iounmap(&op->resource[3], info->enable_reg, 1);
308 of_iounmap(&op->resource[2], info->freq_regs, 2);
315 static int __devexit grover_remove(struct platform_device *op)
317 struct sparcspkr_state *state = dev_get_drvdata(&op->dev);
326 of_iounmap(&op->resource[3], info->enable_reg, 1);
327 of_iounmap(&op->resource[2], info->freq_regs, 2);
329 dev_set_drvdata(&op->dev, NULL);