Brian Norris 103cdd8520 mtd: nand-gpio: don't waste memory for OF failure
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@gmail.com>
2014-01-07 10:07:34 -08:00
..
2014-01-07 10:07:32 -08:00
2013-11-14 12:31:43 +09:00
2012-01-09 18:26:21 +00:00
2013-04-05 13:16:54 +01:00
2014-01-03 11:22:21 -08:00
2012-01-09 18:26:21 +00:00
2013-08-30 21:51:25 +01:00