[PATCH 2/8] macb: detect hclk presence from platform data
Jamie Iles
jamie at jamieiles.com
Thu Mar 10 06:41:37 EST 2011
On Thu, Mar 10, 2011 at 10:15:54AM +0000, Russell King - ARM Linux wrote:
> On Thu, Mar 10, 2011 at 10:10:37AM +0000, Jamie Iles wrote:
> > Rather than detecting whether we need to do a clk_get() and enable on
> > the "hclk" based on the kernel configuration, add an extra field to the
> > platform data. This makes it cleaner to add more supported
> > architectures without lots of ifdeffery.
>
> Why not have the platform provide a dummy hclk if no real hclk exists?
Yes, that would be much better. In that case, this patch can be
replaced with the two below. I'll repost the series with the other
patches refreshed, but I'd like someone with AT91 knowledge to check
that at91_clock_associate() is doing what I think it is first.
This also means that the driver doesn't need a conditional on ARCH_AT91
for the pclk name.
Jamie
More information about the linux-arm-kernel
mailing list