Lines Matching refs:plat_data
33 struct macb_platform_data plat_data; in macb_probe() local
59 memset(&plat_data, 0, sizeof(plat_data)); in macb_probe()
62 plat_data.pclk = clk_register_fixed_rate(&pdev->dev, "pclk", NULL, 0, in macb_probe()
64 if (IS_ERR(plat_data.pclk)) { in macb_probe()
65 err = PTR_ERR(plat_data.pclk); in macb_probe()
69 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe()
71 if (IS_ERR(plat_data.hclk)) { in macb_probe()
72 err = PTR_ERR(plat_data.hclk); in macb_probe()
84 plat_info.data = &plat_data; in macb_probe()
85 plat_info.size_data = sizeof(plat_data); in macb_probe()
100 clk_unregister(plat_data.hclk); in macb_probe()
103 clk_unregister(plat_data.pclk); in macb_probe()
112 struct macb_platform_data *plat_data = dev_get_platdata(&plat_dev->dev); in macb_remove() local
114 clk_unregister(plat_data->pclk); in macb_remove()
115 clk_unregister(plat_data->hclk); in macb_remove()