Lines Matching defs:ofdev
31 static int of_platform_serial_setup(struct platform_device *ofdev,
36 struct device_node *np = ofdev->dev.of_node;
43 pm_runtime_enable(&ofdev->dev);
44 pm_runtime_get_sync(&ofdev->dev);
49 info->clk = devm_clk_get(&ofdev->dev, NULL);
53 dev_warn(&ofdev->dev,
70 dev_warn(&ofdev->dev, "invalid address\n");
88 dev_warn(&ofdev->dev, "reg-offset %u exceeds region size %pa\n",
112 dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n",
150 info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL);
166 port->dev = &ofdev->dev;
191 pm_runtime_put_sync(&ofdev->dev);
192 pm_runtime_disable(&ofdev->dev);
199 static int of_platform_serial_probe(struct platform_device *ofdev)
208 of_device_is_compatible(ofdev->dev.of_node, "brcm,bcm7271-uart"))
211 port_type = (unsigned long)of_device_get_match_data(&ofdev->dev);
215 if (of_property_read_bool(ofdev->dev.of_node, "used-by-rtas"))
223 ret = of_platform_serial_setup(ofdev, port_type, &port8250, info);
231 if ((of_property_read_u32(ofdev->dev.of_node, "tx-threshold",
236 if (of_property_read_bool(ofdev->dev.of_node, "auto-flow-control"))
239 if (of_property_read_u32(ofdev->dev.of_node,
250 platform_set_drvdata(ofdev, info);
254 pm_runtime_put_sync(&ofdev->dev);
255 pm_runtime_disable(&ofdev->dev);
265 static int of_platform_serial_remove(struct platform_device *ofdev)
267 struct of_serial_info *info = platform_get_drvdata(ofdev);
272 pm_runtime_put_sync(&ofdev->dev);
273 pm_runtime_disable(&ofdev->dev);