Lines Matching refs:pdev
503 static int __devinit am35x_probe(struct platform_device *pdev) in am35x_probe() argument
505 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in am35x_probe()
516 dev_err(&pdev->dev, "failed to allocate glue context\n"); in am35x_probe()
522 dev_err(&pdev->dev, "failed to allocate musb device\n"); in am35x_probe()
526 phy_clk = clk_get(&pdev->dev, "fck"); in am35x_probe()
528 dev_err(&pdev->dev, "failed to get PHY clock\n"); in am35x_probe()
533 clk = clk_get(&pdev->dev, "ick"); in am35x_probe()
535 dev_err(&pdev->dev, "failed to get clock\n"); in am35x_probe()
542 dev_err(&pdev->dev, "failed to enable PHY clock\n"); in am35x_probe()
548 dev_err(&pdev->dev, "failed to enable clock\n"); in am35x_probe()
552 musb->dev.parent = &pdev->dev; in am35x_probe()
556 glue->dev = &pdev->dev; in am35x_probe()
563 platform_set_drvdata(pdev, glue); in am35x_probe()
565 ret = platform_device_add_resources(musb, pdev->resource, in am35x_probe()
566 pdev->num_resources); in am35x_probe()
568 dev_err(&pdev->dev, "failed to add resources\n"); in am35x_probe()
574 dev_err(&pdev->dev, "failed to add platform_data\n"); in am35x_probe()
580 dev_err(&pdev->dev, "failed to register musb device\n"); in am35x_probe()
608 static int __devexit am35x_remove(struct platform_device *pdev) in am35x_remove() argument
610 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove()