mpc512x/clock: fix clk_get logic
Wolfram Sang
w.sang at pengutronix.de
Fri Oct 30 22:36:44 EST 2009
On Fri, Oct 30, 2009 at 10:54:14AM +0000, Mark Brown wrote:
> On Fri, Oct 30, 2009 at 10:17:14AM +0100, Wolfram Sang wrote:
> > The matching logic returns a clock even if only the dev-part matches. This is
> > wrong as devices may utilize more than one clock, so the wrong clock may be
> > returned due to dev being not unique (noticed while working on the CAN driver).
> > The proposed new method will:
>
> > - require the id field (as _this_ is the unique identifier)
>
> NULL id fields are supposed to be supported in the cannonical clkdev
> API, unfortunately.
Hmm, ok, thanks for the hint. Where is this documented, I can't find it?
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20091030/a14e8748/attachment.pgp>
More information about the Linuxppc-dev
mailing list