Lines Matching defs:dev
14 #include "sof-of-dev.h"
34 static void sof_of_probe_complete(struct device *dev)
37 pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS);
38 pm_runtime_use_autosuspend(dev);
39 pm_runtime_mark_last_busy(dev);
40 pm_runtime_set_active(dev);
41 pm_runtime_enable(dev);
46 struct device *dev = &pdev->dev;
50 dev_info(&pdev->dev, "DT DSP detected");
52 sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);
56 desc = device_get_match_data(dev);
61 dev_err(dev, "error: no matching DT descriptor ops\n");
66 sof_pdata->dev = &pdev->dev;
83 return snd_sof_device_probe(dev, sof_pdata);
89 pm_runtime_disable(&pdev->dev);
92 snd_sof_device_remove(&pdev->dev);
100 snd_sof_device_shutdown(&pdev->dev);