Lines Matching refs:pdev

126 static void __init at91_reset_status(struct platform_device *pdev)  in at91_reset_status()  argument
172 static int at91_reset_of_probe(struct platform_device *pdev) in at91_reset_of_probe() argument
178 at91_rstc_base = of_iomap(pdev->dev.of_node, 0); in at91_reset_of_probe()
180 dev_err(&pdev->dev, "Could not map reset controller address\n"); in at91_reset_of_probe()
187 dev_err(&pdev->dev, "Could not map ram controller address\n"); in at91_reset_of_probe()
193 match = of_match_node(at91_reset_of_match, pdev->dev.of_node); in at91_reset_of_probe()
198 static int at91_reset_platform_probe(struct platform_device *pdev) in at91_reset_platform_probe() argument
204 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in at91_reset_platform_probe()
205 at91_rstc_base = devm_ioremap_resource(&pdev->dev, res); in at91_reset_platform_probe()
207 dev_err(&pdev->dev, "Could not map reset controller address\n"); in at91_reset_platform_probe()
212 res = platform_get_resource(pdev, IORESOURCE_MEM, idx + 1 ); in at91_reset_platform_probe()
213 at91_ramc_base[idx] = devm_ioremap(&pdev->dev, res->start, in at91_reset_platform_probe()
216 dev_err(&pdev->dev, "Could not map ram controller address\n"); in at91_reset_platform_probe()
221 match = platform_get_device_id(pdev); in at91_reset_platform_probe()
229 static int at91_reset_probe(struct platform_device *pdev) in at91_reset_probe() argument
233 if (pdev->dev.of_node) in at91_reset_probe()
234 ret = at91_reset_of_probe(pdev); in at91_reset_probe()
236 ret = at91_reset_platform_probe(pdev); in at91_reset_probe()
241 at91_reset_status(pdev); in at91_reset_probe()