Lines Matching refs:ofdev
1191 static int ucc_uart_probe(struct platform_device *ofdev) in ucc_uart_probe() argument
1193 struct device_node *np = ofdev->dev.of_node; in ucc_uart_probe()
1204 dev_dbg(&ofdev->dev, "using Soft-UART mode\n"); in ucc_uart_probe()
1228 dev_err(&ofdev->dev, "unknown CPU model\n"); in ucc_uart_probe()
1234 dev_info(&ofdev->dev, "waiting for firmware %s\n", in ucc_uart_probe()
1245 FW_ACTION_HOTPLUG, filename, &ofdev->dev, in ucc_uart_probe()
1246 GFP_KERNEL, &ofdev->dev, uart_firmware_cont); in ucc_uart_probe()
1248 dev_err(&ofdev->dev, in ucc_uart_probe()
1258 dev_err(&ofdev->dev, "can't allocate QE port structure\n"); in ucc_uart_probe()
1265 dev_err(&ofdev->dev, "missing 'reg' property in device tree\n"); in ucc_uart_probe()
1269 dev_err(&ofdev->dev, "invalid 'reg' property in device tree\n"); in ucc_uart_probe()
1281 dev_err(&ofdev->dev, "UCC is unspecified in " in ucc_uart_probe()
1289 dev_err(&ofdev->dev, "no support for UCC%u\n", *iprop); in ucc_uart_probe()
1304 dev_err(&ofdev->dev, "missing rx-clock-name in device tree\n"); in ucc_uart_probe()
1312 dev_err(&ofdev->dev, "rx-clock-name must be a BRG for UART\n"); in ucc_uart_probe()
1323 dev_err(&ofdev->dev, "missing tx-clock-name in device tree\n"); in ucc_uart_probe()
1331 dev_err(&ofdev->dev, "tx-clock-name must be a BRG for UART\n"); in ucc_uart_probe()
1339 dev_err(&ofdev->dev, "missing port-number in device tree\n"); in ucc_uart_probe()
1345 dev_err(&ofdev->dev, "port-number must be 0-%u\n", in ucc_uart_probe()
1353 dev_err(&ofdev->dev, "could not map IRQ for UCC%u\n", in ucc_uart_probe()
1367 dev_err(&ofdev->dev, "could not find 'qe' node\n"); in ucc_uart_probe()
1375 dev_err(&ofdev->dev, in ucc_uart_probe()
1391 dev_err(&ofdev->dev, in ucc_uart_probe()
1399 dev_err(&ofdev->dev, in ucc_uart_probe()
1408 qe_port->port.dev = &ofdev->dev; in ucc_uart_probe()
1438 dev_err(&ofdev->dev, "could not add /dev/ttyQE%u\n", in ucc_uart_probe()
1443 platform_set_drvdata(ofdev, qe_port); in ucc_uart_probe()
1445 dev_info(&ofdev->dev, "UCC%u assigned to /dev/ttyQE%u\n", in ucc_uart_probe()
1449 dev_dbg(&ofdev->dev, "mknod command is 'mknod /dev/ttyQE%u c %u %u'\n", in ucc_uart_probe()
1461 static int ucc_uart_remove(struct platform_device *ofdev) in ucc_uart_remove() argument
1463 struct uart_qe_port *qe_port = platform_get_drvdata(ofdev); in ucc_uart_remove()
1465 dev_info(&ofdev->dev, "removing /dev/ttyQE%u\n", qe_port->port.line); in ucc_uart_remove()