Lines Matching refs:ofdev

1176 static int soft_uart_init(struct platform_device *ofdev)  in soft_uart_init()  argument
1178 struct device_node *np = ofdev->dev.of_node; in soft_uart_init()
1183 dev_dbg(&ofdev->dev, "using Soft-UART mode\n"); in soft_uart_init()
1202 dev_err(&ofdev->dev, "unknown CPU model\n"); in soft_uart_init()
1208 dev_info(&ofdev->dev, "waiting for firmware %s\n", in soft_uart_init()
1219 FW_ACTION_UEVENT, filename, &ofdev->dev, in soft_uart_init()
1220 GFP_KERNEL, &ofdev->dev, uart_firmware_cont); in soft_uart_init()
1222 dev_err(&ofdev->dev, in soft_uart_init()
1233 static int soft_uart_init(struct platform_device *ofdev) in soft_uart_init() argument
1241 static int ucc_uart_probe(struct platform_device *ofdev) in ucc_uart_probe() argument
1243 struct device_node *np = ofdev->dev.of_node; in ucc_uart_probe()
1253 ret = soft_uart_init(ofdev); in ucc_uart_probe()
1259 dev_err(&ofdev->dev, "can't allocate QE port structure\n"); in ucc_uart_probe()
1266 dev_err(&ofdev->dev, "missing 'reg' property in device tree\n"); in ucc_uart_probe()
1270 dev_err(&ofdev->dev, "invalid 'reg' property in device tree\n"); in ucc_uart_probe()
1280 dev_err(&ofdev->dev, "UCC is unspecified in device tree\n"); in ucc_uart_probe()
1287 dev_err(&ofdev->dev, "no support for UCC%u\n", val); in ucc_uart_probe()
1302 dev_err(&ofdev->dev, "missing rx-clock-name in device tree\n"); in ucc_uart_probe()
1310 dev_err(&ofdev->dev, "rx-clock-name must be a BRG for UART\n"); in ucc_uart_probe()
1321 dev_err(&ofdev->dev, "missing tx-clock-name in device tree\n"); in ucc_uart_probe()
1329 dev_err(&ofdev->dev, "tx-clock-name must be a BRG for UART\n"); in ucc_uart_probe()
1336 dev_err(&ofdev->dev, "missing port-number in device tree\n"); in ucc_uart_probe()
1342 dev_err(&ofdev->dev, "port-number must be 0-%u\n", in ucc_uart_probe()
1350 dev_err(&ofdev->dev, "could not map IRQ for UCC%u\n", in ucc_uart_probe()
1364 dev_err(&ofdev->dev, "could not find 'qe' node\n"); in ucc_uart_probe()
1371 dev_err(&ofdev->dev, in ucc_uart_probe()
1381 dev_err(&ofdev->dev, in ucc_uart_probe()
1393 dev_err(&ofdev->dev, in ucc_uart_probe()
1401 dev_err(&ofdev->dev, in ucc_uart_probe()
1410 qe_port->port.dev = &ofdev->dev; in ucc_uart_probe()
1440 dev_err(&ofdev->dev, "could not add /dev/ttyQE%u\n", in ucc_uart_probe()
1445 platform_set_drvdata(ofdev, qe_port); in ucc_uart_probe()
1447 dev_info(&ofdev->dev, "UCC%u assigned to /dev/ttyQE%u\n", in ucc_uart_probe()
1451 dev_dbg(&ofdev->dev, "mknod command is 'mknod /dev/ttyQE%u c %u %u'\n", in ucc_uart_probe()
1463 static int ucc_uart_remove(struct platform_device *ofdev) in ucc_uart_remove() argument
1465 struct uart_qe_port *qe_port = platform_get_drvdata(ofdev); in ucc_uart_remove()
1467 dev_info(&ofdev->dev, "removing /dev/ttyQE%u\n", qe_port->port.line); in ucc_uart_remove()