Lines Matching refs:pdev
73 static int sam9x5_wm8731_driver_probe(struct platform_device *pdev) in sam9x5_wm8731_driver_probe() argument
75 struct device_node *np = pdev->dev.of_node; in sam9x5_wm8731_driver_probe()
84 dev_err(&pdev->dev, "No device node supplied\n"); in sam9x5_wm8731_driver_probe()
88 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
89 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
90 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
91 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
99 card->dev = &pdev->dev; in sam9x5_wm8731_driver_probe()
122 dev_err(&pdev->dev, "atmel,model node missing\n"); in sam9x5_wm8731_driver_probe()
128 dev_err(&pdev->dev, "atmel,audio-routing node missing\n"); in sam9x5_wm8731_driver_probe()
134 dev_err(&pdev->dev, "atmel,audio-codec node missing\n"); in sam9x5_wm8731_driver_probe()
143 dev_err(&pdev->dev, "atmel,ssc-controller node missing\n"); in sam9x5_wm8731_driver_probe()
154 dev_err(&pdev->dev, "Failed to set SSC %d for audio: %d\n", in sam9x5_wm8731_driver_probe()
159 ret = devm_snd_soc_register_card(&pdev->dev, card); in sam9x5_wm8731_driver_probe()
161 dev_err(&pdev->dev, "Platform device allocation failed\n"); in sam9x5_wm8731_driver_probe()
165 dev_dbg(&pdev->dev, "%s ok\n", __func__); in sam9x5_wm8731_driver_probe()
179 static int sam9x5_wm8731_driver_remove(struct platform_device *pdev) in sam9x5_wm8731_driver_remove() argument
181 struct snd_soc_card *card = platform_get_drvdata(pdev); in sam9x5_wm8731_driver_remove()