• Home
  • Raw
  • Download

Lines Matching refs:pdev

58 static int imx_sgtl5000_probe(struct platform_device *pdev)  in imx_sgtl5000_probe()  argument
60 struct device_node *np = pdev->dev.of_node; in imx_sgtl5000_probe()
70 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); in imx_sgtl5000_probe()
75 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); in imx_sgtl5000_probe()
93 dev_err(&pdev->dev, "audmux internal port setup failed\n"); in imx_sgtl5000_probe()
100 dev_err(&pdev->dev, "audmux external port setup failed\n"); in imx_sgtl5000_probe()
104 ssi_np = of_parse_phandle(pdev->dev.of_node, "ssi-controller", 0); in imx_sgtl5000_probe()
105 codec_np = of_parse_phandle(pdev->dev.of_node, "audio-codec", 0); in imx_sgtl5000_probe()
107 dev_err(&pdev->dev, "phandle missing or invalid\n"); in imx_sgtl5000_probe()
114 dev_err(&pdev->dev, "failed to find SSI platform device\n"); in imx_sgtl5000_probe()
120 dev_err(&pdev->dev, "failed to find codec platform device\n"); in imx_sgtl5000_probe()
124 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in imx_sgtl5000_probe()
148 data->card.dev = &pdev->dev; in imx_sgtl5000_probe()
161 platform_set_drvdata(pdev, &data->card); in imx_sgtl5000_probe()
164 ret = devm_snd_soc_register_card(&pdev->dev, &data->card); in imx_sgtl5000_probe()
166 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); in imx_sgtl5000_probe()
186 static int imx_sgtl5000_remove(struct platform_device *pdev) in imx_sgtl5000_remove() argument
188 struct snd_soc_card *card = platform_get_drvdata(pdev); in imx_sgtl5000_remove()