Lines Matching refs:op
400 xilinxfb_of_probe(struct platform_device *op, const struct of_device_id *match)
413 dev_dbg(&op->dev, "xilinxfb_of_probe(%p, %p)\n", op, match);
418 dev_err(&op->dev, "Couldn't allocate device private record\n");
426 p = (u32 *)of_get_property(op->dev.of_node, "xlnx,dcr-splb-slave-if", NULL);
435 rc = of_address_to_resource(op->dev.of_node, 0, &res);
437 dev_err(&op->dev, "invalid address\n");
442 start = dcr_resource_start(op->dev.of_node, 0);
443 drvdata->dcr_len = dcr_resource_len(op->dev.of_node, 0);
444 drvdata->dcr_host = dcr_map(op->dev.of_node, start, drvdata->dcr_len);
446 dev_err(&op->dev, "invalid DCR address\n");
451 prop = of_get_property(op->dev.of_node, "phys-size", &size);
457 prop = of_get_property(op->dev.of_node, "resolution", &size);
463 prop = of_get_property(op->dev.of_node, "virtual-resolution", &size);
469 if (of_find_property(op->dev.of_node, "rotate-display", NULL))
472 dev_set_drvdata(&op->dev, drvdata);
473 return xilinxfb_assign(&op->dev, drvdata, res.start, &pdata);
480 static int __devexit xilinxfb_of_remove(struct platform_device *op)
482 return xilinxfb_release(&op->dev);