Lines Matching refs:pdev
504 static int __devinit am35x_probe(struct platform_device *pdev) in am35x_probe() argument
506 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in am35x_probe()
517 dev_err(&pdev->dev, "failed to allocate glue context\n"); in am35x_probe()
523 dev_err(&pdev->dev, "failed to allocate musb device\n"); in am35x_probe()
527 phy_clk = clk_get(&pdev->dev, "fck"); in am35x_probe()
529 dev_err(&pdev->dev, "failed to get PHY clock\n"); in am35x_probe()
534 clk = clk_get(&pdev->dev, "ick"); in am35x_probe()
536 dev_err(&pdev->dev, "failed to get clock\n"); in am35x_probe()
543 dev_err(&pdev->dev, "failed to enable PHY clock\n"); in am35x_probe()
549 dev_err(&pdev->dev, "failed to enable clock\n"); in am35x_probe()
553 musb->dev.parent = &pdev->dev; in am35x_probe()
557 glue->dev = &pdev->dev; in am35x_probe()
564 platform_set_drvdata(pdev, glue); in am35x_probe()
566 ret = platform_device_add_resources(musb, pdev->resource, in am35x_probe()
567 pdev->num_resources); in am35x_probe()
569 dev_err(&pdev->dev, "failed to add resources\n"); in am35x_probe()
575 dev_err(&pdev->dev, "failed to add platform_data\n"); in am35x_probe()
581 dev_err(&pdev->dev, "failed to register musb device\n"); in am35x_probe()
609 static int __devexit am35x_remove(struct platform_device *pdev) in am35x_remove() argument
611 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove()