From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QUaAa-0001po-RD for linux-mtd@lists.infradead.org; Thu, 09 Jun 2011 08:00:49 +0000 Received: by fxm14 with SMTP id 14so1144610fxm.36 for ; Thu, 09 Jun 2011 01:00:45 -0700 (PDT) Subject: Re: [PATCH 0/43 V2] mtd: simplify mtd partitions handling From: Artem Bityutskiy To: Dmitry Eremin-Solenikov In-Reply-To: <1307549152-7085-1-git-send-email-dbaryshkov@gmail.com> References: <1307549152-7085-1-git-send-email-dbaryshkov@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 09 Jun 2011 10:56:27 +0300 Message-ID: <1307606187.7374.36.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Russell King , linux-mtd@lists.infradead.org, David Woodhouse Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2011-06-08 at 20:05 +0400, Dmitry Eremin-Solenikov wrote: > Lots of mtd drivers have more or less the same common logic: > parse partitions, then register them. Currently this ends up > with lots of code duplication, each copy having it's own features > and bugs. In this patch serie I create a special function > (mtd_device_parse_register) which handles all issues with acquiring > partition information, registering mtd device(s) and returning correct > error code. > > Changes since V1: > - Added kerneldoc for mtd_device_parse_register > - removed lart.c patch (wrong commit message) > - dropped call to mtd_device_register from rbtx4939-flash > - small fixes within patches > > The following changes since commit 1dc1d90aa53e6cec61f5369b6d1e185b3ef40c14: > > mtd: davinci_nand: remove redundant mtd_device_unregister (2011-06-08 18:00:41 +0300) > > are available in the git repository at: > git://git.infradead.org/users/dbaryshkov/mtd-cleanup.git mtd-parse-1st-2 Pushed the series with minor tweaks to l2-mtd-2.6.git, thank you! -- Best Regards, Artem Bityutskiy (Артём Битюцкий)