[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130723093950.GR24642@n2100.arm.linux.org.uk>
Date: Tue, 23 Jul 2013 10:39:50 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: Jean-Francois Moine <moinejf@...e.fr>, alsa-devel@...a-project.org,
Takashi Iwai <tiwai@...e.de>, linux-kernel@...r.kernel.org,
Liam Girdwood <lgirdwood@...il.com>,
Rob Herring <rob.herring@...xeda.com>,
devicetree-discuss@...r.kernel.org, Mark Brown <broonie@...nel.org>
Subject: Re: [alsa-devel] [PATCH v3] ARM: kirkwood: extend the kirkwood i2s
driver for DT usage
On Tue, Jul 23, 2013 at 11:08:20AM +0200, Sascha Hauer wrote:
> On Tue, Jul 23, 2013 at 09:53:46AM +0100, Russell King - ARM Linux wrote:
> > On Tue, Jul 23, 2013 at 10:46:15AM +0200, Jean-Francois Moine wrote:
> > > The kirkwood i2s driver is used without DT in the Kirkwood machine.
> > > This patch adds a DT compatible definition for use in other Marvell
> > > machines as the Armada 88AP510 (Dove).
> >
> > Yet again, this illustrates why converting to DT causes backwards
> > steps in drivers: the conversion of devm_clk_get() to of_clk_get()
> > necessitates a clk_put().
> >
> > Can someone please provide a devm_of_clk_get() function before we
> > accept any more patches doing this kind of thing?
>
> The question is why isn't regular [devm_]clk_get used here? I don't know
> what the Marvell stuff is doing here, but if the clk stuff is
> implemented correctly then
>
> np = pdev->dev.of_node;
> priv->clk = of_clk_get(np, 0);
>
> and
>
> devm_clk_get(&pdev->dev, "label");
>
> should both work
You tell me - I keep seeing patches on this list converting drivers from
using devm_clk_get() to using of_clk_get(). Maybe of_clk_get() should be
marked deprecated to stop people using it?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists