Lines Matching defs:ofdev

1175 static int soft_uart_init(struct platform_device *ofdev)
1177 struct device_node *np = ofdev->dev.of_node;
1182 dev_dbg(&ofdev->dev, "using Soft-UART mode\n");
1201 dev_err(&ofdev->dev, "unknown CPU model\n");
1207 dev_info(&ofdev->dev, "waiting for firmware %s\n",
1218 FW_ACTION_UEVENT, filename, &ofdev->dev,
1219 GFP_KERNEL, &ofdev->dev, uart_firmware_cont);
1221 dev_err(&ofdev->dev,
1232 static int soft_uart_init(struct platform_device *ofdev)
1240 static int ucc_uart_probe(struct platform_device *ofdev)
1242 struct device_node *np = ofdev->dev.of_node;
1252 ret = soft_uart_init(ofdev);
1258 dev_err(&ofdev->dev, "can't allocate QE port structure\n");
1265 dev_err(&ofdev->dev, "missing 'reg' property in device tree\n");
1269 dev_err(&ofdev->dev, "invalid 'reg' property in device tree\n");
1279 dev_err(&ofdev->dev, "UCC is unspecified in device tree\n");
1286 dev_err(&ofdev->dev, "no support for UCC%u\n", val);
1301 dev_err(&ofdev->dev, "missing rx-clock-name in device tree\n");
1309 dev_err(&ofdev->dev, "rx-clock-name must be a BRG for UART\n");
1320 dev_err(&ofdev->dev, "missing tx-clock-name in device tree\n");
1328 dev_err(&ofdev->dev, "tx-clock-name must be a BRG for UART\n");
1335 dev_err(&ofdev->dev, "missing port-number in device tree\n");
1341 dev_err(&ofdev->dev, "port-number must be 0-%u\n",
1349 dev_err(&ofdev->dev, "could not map IRQ for UCC%u\n",
1363 dev_err(&ofdev->dev, "could not find 'qe' node\n");
1370 dev_err(&ofdev->dev,
1380 dev_err(&ofdev->dev,
1392 dev_err(&ofdev->dev,
1400 dev_err(&ofdev->dev,
1409 qe_port->port.dev = &ofdev->dev;
1439 dev_err(&ofdev->dev, "could not add /dev/ttyQE%u\n",
1444 platform_set_drvdata(ofdev, qe_port);
1446 dev_info(&ofdev->dev, "UCC%u assigned to /dev/ttyQE%u\n",
1450 dev_dbg(&ofdev->dev, "mknod command is 'mknod /dev/ttyQE%u c %u %u'\n",
1462 static int ucc_uart_remove(struct platform_device *ofdev)
1464 struct uart_qe_port *qe_port = platform_get_drvdata(ofdev);
1466 dev_info(&ofdev->dev, "removing /dev/ttyQE%u\n", qe_port->port.line);