[alsa-devel] [Patch v2 06/11] ASoC: ipq806x: Add I2S PCM platform driver
Mark Brown
broonie at kernel.org
Tue Dec 9 17:04:56 CET 2014
On Mon, Dec 08, 2014 at 02:01:08PM -0800, Kenneth Westfield wrote:
> +static int lpass_pcm_mi2s_platform_probe(struct platform_device *pdev)
> +{
> + int ret;
> +
> + ret = devm_snd_soc_register_platform(&pdev->dev,
> + &lpass_pcm_mi2s_soc_driver);
> + if (ret)
> + dev_err(&pdev->dev, "%s: Failed to register pcm device: %d\n",
> + __func__, ret);
> +
> + return ret;
> +}
> +static const struct of_device_id lpass_pcm_mi2s_dt_match[] = {
> + { .compatible = "qcom,lpass-pcm-mi2s", },
> + {}
> +};
This device which is intended to appear in the device tree and accesses
hardware acquires no resources on probe. That indicates that there's
something wrong with the way you're modelling things in device tree; my
best guess would be that it's part of the I2S controller and should be
being instantiated from the I2S DAI driver code not the DT - many other
drivers use this model, it's very standard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141209/49981fd7/attachment.sig>
More information about the Alsa-devel
mailing list