From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-iy0-f177.google.com ([209.85.210.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qb4u8-0001bt-BA for linux-mtd@lists.infradead.org; Mon, 27 Jun 2011 06:02:40 +0000 Received: by iyn15 with SMTP id 15so4701467iyn.36 for ; Sun, 26 Jun 2011 23:02:39 -0700 (PDT) Subject: Re: [PATCH 2/2] mtd/ofpart: add ofoldpart alias From: Artem Bityutskiy To: Dmitry Eremin-Solenikov Date: Mon, 27 Jun 2011 09:03:26 +0300 In-Reply-To: References: <1309122180-12838-1-git-send-email-dbaryshkov@gmail.com> <1309122180-12838-3-git-send-email-dbaryshkov@gmail.com> <1309153545.23597.13.camel@sauron> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Message-ID: <1309154611.23597.18.camel@sauron> Mime-Version: 1.0 Cc: Randy Dunlap , Stephen Rothwell , linux-kernel@vger.kernel.org, Grant Likely , linux-next@vger.kernel.org, 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 Mon, 2011-06-27 at 09:51 +0400, Dmitry Eremin-Solenikov wrote: > On 6/27/11, Artem Bityutskiy wrote: > > On Mon, 2011-06-27 at 01:03 +0400, Dmitry Eremin-Solenikov wrote: > >> ofpart.ko also provides ofoldpart MTD parser. Add respective > >> MODULE_ALIAS("ofoldpart"); declaration. > >> > > > > Why we need the alias? > > Please check the parse_mtd_partitions code. If requested parser > isn't registered, it tries to load corresponding module. So, this alias > is necessary in the semi-bogus case when one will have the list > of parsers containing ofoldpart, but not ofpart partition parser. Fair enough, but would you please prepend MODULE_ALIAS with a comment like this which explains why we need the alias? -- Best Regards, Artem Bityutskiy