[PATCH] mtd: nand-gpio: don't waste memory for OF failure

Brian Norris computersforpeace at gmail.com
Fri Jan 3 14:39:24 EST 2014


On Tue, Dec 17, 2013 at 01:33:50AM -0800, Brian Norris wrote:
> We shouldn't try to allocate a resource until we're sure the
> of_property_read_u64() call didn't fail. This is especially important if
> we use this code for both CONFIG_OF and !CONFIG_OF builds, since
> of_property_read_u64() will always return -ENOSYS for !CONFIG_OF.
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> ---
> Compile tested only

Pushed to l2-mtd.git.

Brian



More information about the linux-mtd mailing list