From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@secretlab.ca (Grant Likely) Date: Mon, 10 Jan 2011 16:43:21 -0700 Subject: [PATCH] spi: tegra: don't treat NULL clk as an error In-Reply-To: <20110110233033.GG12552@n2100.arm.linux.org.uk> References: <1294657506-27510-1-git-send-email-jamie@jamieiles.com> <20110110221802.GD12552@n2100.arm.linux.org.uk> <20110110222524.GE12552@n2100.arm.linux.org.uk> <20110110233033.GG12552@n2100.arm.linux.org.uk> Message-ID: <20110110234321.GA1846@angua.secretlab.ca> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jan 10, 2011 at 11:30:33PM +0000, Russell King - ARM Linux wrote: > 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. ;) nice analogy. :-) g.