Lines Matching refs:pdev
62 static int __init imx_weim_gpr_setup(struct platform_device *pdev) in imx_weim_gpr_setup() argument
64 struct device_node *np = pdev->dev.of_node; in imx_weim_gpr_setup()
81 dev_dbg(&pdev->dev, "failed to find weim-cs-gpr\n"); in imx_weim_gpr_setup()
107 dev_err(&pdev->dev, "Invalid 'ranges' configuration\n"); in imx_weim_gpr_setup()
138 static int __init weim_parse_dt(struct platform_device *pdev, in weim_parse_dt() argument
142 &pdev->dev); in weim_parse_dt()
148 ret = imx_weim_gpr_setup(pdev); in weim_parse_dt()
153 for_each_available_child_of_node(pdev->dev.of_node, child) { in weim_parse_dt()
159 dev_warn(&pdev->dev, "%s set timing failed.\n", in weim_parse_dt()
166 ret = of_platform_populate(pdev->dev.of_node, in weim_parse_dt()
168 NULL, &pdev->dev); in weim_parse_dt()
170 dev_err(&pdev->dev, "%s fail to create devices.\n", in weim_parse_dt()
171 pdev->dev.of_node->full_name); in weim_parse_dt()
175 static int __init weim_probe(struct platform_device *pdev) in weim_probe() argument
183 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in weim_probe()
184 base = devm_ioremap_resource(&pdev->dev, res); in weim_probe()
189 clk = devm_clk_get(&pdev->dev, NULL); in weim_probe()
198 ret = weim_parse_dt(pdev, base); in weim_probe()
202 dev_info(&pdev->dev, "Driver registered.\n"); in weim_probe()