Lines Matching refs:glue
463 struct am35x_glue *glue; in am35x_probe() local
470 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in am35x_probe()
471 if (!glue) { in am35x_probe()
502 glue->dev = &pdev->dev; in am35x_probe()
503 glue->phy_clk = phy_clk; in am35x_probe()
504 glue->clk = clk; in am35x_probe()
508 glue->phy = usb_phy_generic_register(); in am35x_probe()
509 if (IS_ERR(glue->phy)) in am35x_probe()
511 platform_set_drvdata(pdev, glue); in am35x_probe()
520 glue->musb = musb = platform_device_register_full(&pinfo); in am35x_probe()
530 usb_phy_generic_unregister(glue->phy); in am35x_probe()
545 kfree(glue); in am35x_probe()
553 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove() local
555 platform_device_unregister(glue->musb); in am35x_remove()
556 usb_phy_generic_unregister(glue->phy); in am35x_remove()
557 clk_disable(glue->clk); in am35x_remove()
558 clk_disable(glue->phy_clk); in am35x_remove()
559 clk_put(glue->clk); in am35x_remove()
560 clk_put(glue->phy_clk); in am35x_remove()
561 kfree(glue); in am35x_remove()
569 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_suspend() local
577 clk_disable(glue->phy_clk); in am35x_suspend()
578 clk_disable(glue->clk); in am35x_suspend()
585 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_resume() local
594 ret = clk_enable(glue->phy_clk); in am35x_resume()
600 ret = clk_enable(glue->clk); in am35x_resume()