mtd: ofpart: Check availability of reg property instead of name property
commitb4a665c77baee92e5d3e7bac5e1ac61f5003ff28
authorBenjamin Krill <ben@codiert.org>
Tue, 25 Aug 2009 13:52:41 +0000 (25 15:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:51 +0000 (5 09:31 -0700)
tree939e6c103efaf6955f03774239ff2072919c97f0
parentcb5cef6bfc6e635f06cce182d76a1682176c0df5
mtd: ofpart: Check availability of reg property instead of name property

commit ebd5a74db74ee2db833d43ea35108a4be9cab42f upstream.

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.

Signed-off-by: Benjamin Krill <ben@codiert.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/ofpart.c