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 1QUJYf-0005P2-UP for linux-mtd@lists.infradead.org; Wed, 08 Jun 2011 14:16:34 +0000 Received: by fxm14 with SMTP id 14so466595fxm.36 for ; Wed, 08 Jun 2011 07:16:32 -0700 (PDT) Subject: Re: [PATCH 05/44] mtd: bfin-async-flash.c: use mtd_device_parse_register From: Artem Bityutskiy To: Dmitry Eremin-Solenikov In-Reply-To: References: <1307453803-31950-1-git-send-email-dbaryshkov@gmail.com> <1307453803-31950-6-git-send-email-dbaryshkov@gmail.com> <1307523682.31223.32.camel@localhost> <1307523765.31223.33.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Wed, 08 Jun 2011 17:12:09 +0300 Message-ID: <1307542329.31223.98.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: David Woodhouse , linux-mtd@lists.infradead.org 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 18:06 +0400, Dmitry Eremin-Solenikov wrote: > On 6/8/11, Artem Bityutskiy wrote: > > On Wed, 2011-06-08 at 12:01 +0300, Artem Bityutskiy wrote: > >> On Tue, 2011-06-07 at 17:36 +0400, Dmitry Eremin-Solenikov wrote: > >> > + mtd_device_parse_register(state->mtd, part_probe_types, 0, > >> > + pdata->parts, pdata->nr_parts); > >> > >> How about checking the return code? :-) > > > > Ok, you did not do it because the original function did not do it. Fair > > enough, this is a separate thing. > > Nice idea. Making mtd_device_parse_register a __must_check function :) But please, do it as a separate patch. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)