[PATCH] spi: tegra: don't treat NULL clk as an error

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 10 18:30:33 EST 2011


On Mon, Jan 10, 2011 at 04:24:17PM -0700, Grant Likely wrote:
> I was actually looking at the implementation of clk_enable() which is
> called by the driver and doesn't do any NULL checking.  But I suppose
> that it then becomes the clock-code's own fault if it returns NULL and
> then oopses on a NULL being passed to it.  Okay, I'll apply it.

Yes absolutely.  The clk API must eat whatever cookies it produces,
even if they contain dead flies rather than currants. ;)



More information about the linux-arm-kernel mailing list