Lines Matching defs:dev
56 static void sof_of_probe_complete(struct device *dev)
59 pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS);
60 pm_runtime_use_autosuspend(dev);
61 pm_runtime_set_active(dev);
62 pm_runtime_enable(dev);
64 pm_runtime_mark_last_busy(dev);
65 pm_runtime_put_autosuspend(dev);
70 struct device *dev = &pdev->dev;
76 dev_info(&pdev->dev, "DT DSP detected");
78 sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);
82 desc = device_get_match_data(dev);
89 dev_err(dev, "error: no matching DT descriptor ops\n");
94 sof_pdata->dev = &pdev->dev;
106 ret = snd_sof_device_probe(dev, sof_pdata);
108 dev_err(dev, "error: failed to probe DSP hardware\n");
113 sof_of_probe_complete(dev);
121 pm_runtime_disable(&pdev->dev);
124 snd_sof_device_remove(&pdev->dev);