Lines Matching refs:pdev
495 static int __devinit omap2430_probe(struct platform_device *pdev) in omap2430_probe() argument
497 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in omap2430_probe()
502 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); in omap2430_probe()
504 dev_err(&pdev->dev, "failed to allocate glue context\n"); in omap2430_probe()
510 dev_err(&pdev->dev, "failed to allocate musb device\n"); in omap2430_probe()
514 musb->dev.parent = &pdev->dev; in omap2430_probe()
518 glue->dev = &pdev->dev; in omap2430_probe()
524 platform_set_drvdata(pdev, glue); in omap2430_probe()
534 ret = platform_device_add_resources(musb, pdev->resource, in omap2430_probe()
535 pdev->num_resources); in omap2430_probe()
537 dev_err(&pdev->dev, "failed to add resources\n"); in omap2430_probe()
543 dev_err(&pdev->dev, "failed to add platform_data\n"); in omap2430_probe()
547 pm_runtime_enable(&pdev->dev); in omap2430_probe()
551 dev_err(&pdev->dev, "failed to register musb device\n"); in omap2430_probe()
564 static int __devexit omap2430_remove(struct platform_device *pdev) in omap2430_remove() argument
566 struct omap2430_glue *glue = platform_get_drvdata(pdev); in omap2430_remove()