mtd: lantiq-flash.c: use mtd_device_parse_register
commitca97dec2ab5c87e9fbdf7e882e1820004a3966fa
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 2 Jun 2011 13:59:49 +0000 (2 17:59 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:07 +0000 (11 15:02 +0300)
tree823aed45d98f2ca59fe86149b7589bc14daa9e4c
parentbc413f11ddf2c692cc533f474d28a154abe4541f
mtd: lantiq-flash.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 <Artem.Bityutskiy@nokia.com>
drivers/mtd/maps/lantiq-flash.c