[alsa-devel] [PATCH V3 3/4] ASoC: tas571x: New driver for TI TAS571x power amplifiers
Mark Brown
broonie at kernel.org
Mon May 4 15:57:26 CEST 2015
On Mon, May 04, 2015 at 06:51:32AM -0700, Kevin Cernekee wrote:
> On Mon, May 4, 2015 at 4:45 AM, Mark Brown <broonie at kernel.org> wrote:
> > On Sun, May 03, 2015 at 05:00:18PM -0700, Kevin Cernekee wrote:
> >> + if (dev->of_node) {
> >> + const struct of_device_id *of_id;
> >> +
> >> + of_id = of_match_device(tas571x_of_match, dev);
> >> + if (of_id)
> >> + priv->chip = of_id->data;
> >> + }
> > Doesn't of_match_device() do the right thing with devices not registered
> > from DT?
> Not sure. What kinds of situations are you concerned about?
I'm wondering why we need to bother checking for dev->of_node before
calling it.
-------------- 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/20150504/e0def19f/attachment.sig>
More information about the Alsa-devel
mailing list