Lines Matching refs:pdev
41 struct platform_device *pdev; member
75 struct device *dev = &priv->pdev->dev; in imx_wm8962_set_bias_level()
141 struct device *dev = &priv->pdev->dev; in imx_wm8962_late_probe()
152 static int imx_wm8962_probe(struct platform_device *pdev) in imx_wm8962_probe() argument
154 struct device_node *np = pdev->dev.of_node; in imx_wm8962_probe()
163 priv->pdev = pdev; in imx_wm8962_probe()
167 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); in imx_wm8962_probe()
172 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); in imx_wm8962_probe()
190 dev_err(&pdev->dev, "audmux internal port setup failed\n"); in imx_wm8962_probe()
197 dev_err(&pdev->dev, "audmux external port setup failed\n"); in imx_wm8962_probe()
201 ssi_np = of_parse_phandle(pdev->dev.of_node, "ssi-controller", 0); in imx_wm8962_probe()
202 codec_np = of_parse_phandle(pdev->dev.of_node, "audio-codec", 0); in imx_wm8962_probe()
204 dev_err(&pdev->dev, "phandle missing or invalid\n"); in imx_wm8962_probe()
211 dev_err(&pdev->dev, "failed to find SSI platform device\n"); in imx_wm8962_probe()
217 dev_err(&pdev->dev, "failed to find codec platform device\n"); in imx_wm8962_probe()
222 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in imx_wm8962_probe()
252 data->card.dev = &pdev->dev; in imx_wm8962_probe()
267 platform_set_drvdata(pdev, &data->card); in imx_wm8962_probe()
270 ret = devm_snd_soc_register_card(&pdev->dev, &data->card); in imx_wm8962_probe()
272 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); in imx_wm8962_probe()
292 static int imx_wm8962_remove(struct platform_device *pdev) in imx_wm8962_remove() argument
294 struct snd_soc_card *card = platform_get_drvdata(pdev); in imx_wm8962_remove()