Lines Matching refs:glue
469 struct am35x_glue *glue; in am35x_probe() local
476 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in am35x_probe()
477 if (!glue) { in am35x_probe()
508 glue->dev = &pdev->dev; in am35x_probe()
509 glue->phy_clk = phy_clk; in am35x_probe()
510 glue->clk = clk; in am35x_probe()
514 glue->phy = usb_phy_generic_register(); in am35x_probe()
515 if (IS_ERR(glue->phy)) in am35x_probe()
517 platform_set_drvdata(pdev, glue); in am35x_probe()
526 glue->musb = musb = platform_device_register_full(&pinfo); in am35x_probe()
536 usb_phy_generic_unregister(glue->phy); in am35x_probe()
551 kfree(glue); in am35x_probe()
559 struct am35x_glue *glue = platform_get_drvdata(pdev); in am35x_remove() local
561 platform_device_unregister(glue->musb); in am35x_remove()
562 usb_phy_generic_unregister(glue->phy); in am35x_remove()
563 clk_disable(glue->clk); in am35x_remove()
564 clk_disable(glue->phy_clk); in am35x_remove()
565 clk_put(glue->clk); in am35x_remove()
566 clk_put(glue->phy_clk); in am35x_remove()
567 kfree(glue); in am35x_remove()
575 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_suspend() local
583 clk_disable(glue->phy_clk); in am35x_suspend()
584 clk_disable(glue->clk); in am35x_suspend()
591 struct am35x_glue *glue = dev_get_drvdata(dev); in am35x_resume() local
600 ret = clk_enable(glue->phy_clk); in am35x_resume()
606 ret = clk_enable(glue->clk); in am35x_resume()