Lines Matching refs:glue
465 struct am35x_glue *glue; in am35x_probe() local
472 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in am35x_probe()
473 if (!glue) { in am35x_probe()
504 glue->dev = &pdev->dev; in am35x_probe()
505 glue->phy_clk = phy_clk; in am35x_probe()
506 glue->clk = clk; in am35x_probe()
510 glue->phy = usb_phy_generic_register(); in am35x_probe()
511 if (IS_ERR(glue->phy)) in am35x_probe()
513 platform_set_drvdata(pdev, glue); in am35x_probe()
522 glue->musb = musb = platform_device_register_full(&pinfo); in am35x_probe()
532 usb_phy_generic_unregister(glue->phy); in am35x_probe()
547 kfree(glue); in am35x_probe()
555 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove() local
557 platform_device_unregister(glue->musb); in am35x_remove()
558 usb_phy_generic_unregister(glue->phy); in am35x_remove()
559 clk_disable(glue->clk); in am35x_remove()
560 clk_disable(glue->phy_clk); in am35x_remove()
561 clk_put(glue->clk); in am35x_remove()
562 clk_put(glue->phy_clk); in am35x_remove()
563 kfree(glue); in am35x_remove()
571 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_suspend() local
579 clk_disable(glue->phy_clk); in am35x_suspend()
580 clk_disable(glue->clk); in am35x_suspend()
587 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_resume() local
596 ret = clk_enable(glue->phy_clk); in am35x_resume()
602 ret = clk_enable(glue->clk); in am35x_resume()