Lines Matching refs:op
185 static int bbc_beep_probe(struct platform_device *op) in bbc_beep_probe() argument
210 info->regs = of_ioremap(&op->resource[0], 0, 6, "bbc beep"); in bbc_beep_probe()
214 platform_set_drvdata(op, state); in bbc_beep_probe()
216 err = sparcspkr_probe(&op->dev); in bbc_beep_probe()
223 of_iounmap(&op->resource[0], info->regs, 6); in bbc_beep_probe()
231 static int bbc_remove(struct platform_device *op) in bbc_remove() argument
233 struct sparcspkr_state *state = platform_get_drvdata(op); in bbc_remove()
242 of_iounmap(&op->resource[0], info->regs, 6); in bbc_remove()
268 static int grover_beep_probe(struct platform_device *op) in grover_beep_probe() argument
283 info->freq_regs = of_ioremap(&op->resource[2], 0, 2, "grover beep freq"); in grover_beep_probe()
287 info->enable_reg = of_ioremap(&op->resource[3], 0, 1, "grover beep enable"); in grover_beep_probe()
291 platform_set_drvdata(op, state); in grover_beep_probe()
293 err = sparcspkr_probe(&op->dev); in grover_beep_probe()
300 of_iounmap(&op->resource[3], info->enable_reg, 1); in grover_beep_probe()
303 of_iounmap(&op->resource[2], info->freq_regs, 2); in grover_beep_probe()
310 static int grover_remove(struct platform_device *op) in grover_remove() argument
312 struct sparcspkr_state *state = platform_get_drvdata(op); in grover_remove()
321 of_iounmap(&op->resource[3], info->enable_reg, 1); in grover_remove()
322 of_iounmap(&op->resource[2], info->freq_regs, 2); in grover_remove()