Lines Matching refs:pdev
80 static int atmel_asoc_wm8904_dt_init(struct platform_device *pdev) in atmel_asoc_wm8904_dt_init() argument
82 struct device_node *np = pdev->dev.of_node; in atmel_asoc_wm8904_dt_init()
89 dev_err(&pdev->dev, "only device tree supported\n"); in atmel_asoc_wm8904_dt_init()
95 dev_err(&pdev->dev, "failed to parse card name\n"); in atmel_asoc_wm8904_dt_init()
101 dev_err(&pdev->dev, "failed to parse audio routing\n"); in atmel_asoc_wm8904_dt_init()
107 dev_err(&pdev->dev, "failed to get dai and pcm info\n"); in atmel_asoc_wm8904_dt_init()
117 dev_err(&pdev->dev, "failed to get codec info\n"); in atmel_asoc_wm8904_dt_init()
127 static int atmel_asoc_wm8904_probe(struct platform_device *pdev) in atmel_asoc_wm8904_probe() argument
133 card->dev = &pdev->dev; in atmel_asoc_wm8904_probe()
134 ret = atmel_asoc_wm8904_dt_init(pdev); in atmel_asoc_wm8904_probe()
136 dev_err(&pdev->dev, "failed to init dt info\n"); in atmel_asoc_wm8904_probe()
143 dev_err(&pdev->dev, "failed to set SSC %d for audio\n", id); in atmel_asoc_wm8904_probe()
149 dev_err(&pdev->dev, "snd_soc_register_card failed\n"); in atmel_asoc_wm8904_probe()
160 static int atmel_asoc_wm8904_remove(struct platform_device *pdev) in atmel_asoc_wm8904_remove() argument
162 struct snd_soc_card *card = platform_get_drvdata(pdev); in atmel_asoc_wm8904_remove()