• Home
  • Raw
  • Download

Lines Matching refs:pdev

322 static int img_spdif_out_probe(struct platform_device *pdev)  in img_spdif_out_probe()  argument
328 struct device *dev = &pdev->dev; in img_spdif_out_probe()
330 spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); in img_spdif_out_probe()
334 platform_set_drvdata(pdev, spdif); in img_spdif_out_probe()
336 spdif->dev = &pdev->dev; in img_spdif_out_probe()
338 base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in img_spdif_out_probe()
344 spdif->rst = devm_reset_control_get_exclusive(&pdev->dev, "rst"); in img_spdif_out_probe()
347 dev_err(&pdev->dev, "No top level reset found\n"); in img_spdif_out_probe()
351 spdif->clk_sys = devm_clk_get(&pdev->dev, "sys"); in img_spdif_out_probe()
358 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_spdif_out_probe()
365 pm_runtime_enable(&pdev->dev); in img_spdif_out_probe()
366 if (!pm_runtime_enabled(&pdev->dev)) { in img_spdif_out_probe()
367 ret = img_spdif_out_runtime_resume(&pdev->dev); in img_spdif_out_probe()
371 ret = pm_runtime_get_sync(&pdev->dev); in img_spdif_out_probe()
373 pm_runtime_put_noidle(&pdev->dev); in img_spdif_out_probe()
381 pm_runtime_put(&pdev->dev); in img_spdif_out_probe()
389 ret = devm_snd_soc_register_component(&pdev->dev, in img_spdif_out_probe()
395 ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); in img_spdif_out_probe()
399 dev_dbg(&pdev->dev, "Probe successful\n"); in img_spdif_out_probe()
404 if (!pm_runtime_status_suspended(&pdev->dev)) in img_spdif_out_probe()
405 img_spdif_out_runtime_suspend(&pdev->dev); in img_spdif_out_probe()
407 pm_runtime_disable(&pdev->dev); in img_spdif_out_probe()
412 static int img_spdif_out_dev_remove(struct platform_device *pdev) in img_spdif_out_dev_remove() argument
414 pm_runtime_disable(&pdev->dev); in img_spdif_out_dev_remove()
415 if (!pm_runtime_status_suspended(&pdev->dev)) in img_spdif_out_dev_remove()
416 img_spdif_out_runtime_suspend(&pdev->dev); in img_spdif_out_dev_remove()