Re: [PATCH RESEND v7 2/3] ASoC: add es8328 codec driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Jul 03, 2014 at 10:19:48AM +0800, Sean Cross wrote:
> Add a codec driver for the Everest ES8328.  It supports two separate audio
> outputs and two separate audio inputs.
> 
> Signed-off-by: Sean Cross <xobs@xxxxxxxxxx>
> ---

<snip>

> +
> +static int es8328_codec_probe(struct snd_soc_codec *codec)
> +{
> +	struct es8328_priv *es8328;
> +	int ret;
> +	int i;
> +
> +	es8328 = snd_soc_codec_get_drvdata(codec);
> +
> +	for (i = 0; i < ARRAY_SIZE(es8328->supplies); i++)
> +		es8328->supplies[i].supply = supply_names[i];
> +
> +	ret = devm_regulator_bulk_get(codec->dev, ARRAY_SIZE(es8328->supplies),
> +				es8328->supplies);

Is it safe to use devm_ from the ASoC level probe here? I think
there was a discussion recently that this can cause problems on
driver unbinding.

Otherwise this looks pretty good to me.

Thanks,
Charles
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux