mtd: ofpart: Check availability of reg property instead of name property
authorBenjamin Krill <ben@codiert.org>
Tue, 25 Aug 2009 13:52:41 +0000 (15:52 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 21:14:48 +0000 (14:14 -0700)
commitebd5a74db74ee2db833d43ea35108a4be9cab42f
tree6a530ea062a40c690a3c278abade5c900ad7abf7
parent9289d4ef065a6c62db6bf13d624307f61e57dbbb
mtd: ofpart: Check availability of reg property instead of name property

The previous implementation breaks the dts binding "mtd-physmap.txt". This
implementation fixes the issue by checking the availability of the reg
property instead of the name property.

Cc: stable@kernel.org
Signed-off-by: Benjamin Krill <ben@codiert.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/ofpart.c