mtd: mpc5121_nfc.c: use mtd_device_parse_register
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 2 Jun 2011 14:00:42 +0000 (18:00 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:12 +0000 (15:02 +0300)
commita9093f064eb053c1b9fca8b8026577c0b3b9aa8a
treeb0adf164b79774d2f3015d0bea523c32f8ee15d7
parent73f36b3e251888ef224a3c90d3c408e02a1eb957
mtd: mpc5121_nfc.c: use mtd_device_parse_register

Replace custom invocations of parse_mtd_partitions and mtd_device_register
with common mtd_device_parse_register call. This would bring: standard
handling of all errors, fallback to default partitions, etc.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/nand/mpc5121_nfc.c