From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 17 Jun 2008 09:51:37 +0100 (BST) Received: from smtp.movial.fi ([62.236.91.34]:19899 "EHLO smtp.movial.fi") by ftp.linux-mips.org with ESMTP id S20022644AbYFQIvf (ORCPT ); Tue, 17 Jun 2008 09:51:35 +0100 Received: from localhost (mailscanner.hel.movial.fi [172.17.81.9]) by smtp.movial.fi (Postfix) with ESMTP id 8A0ACC80D3; Tue, 17 Jun 2008 11:51:28 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at movial.fi Received: from smtp.movial.fi ([62.236.91.34]) by localhost (mailscanner.hel.movial.fi [172.17.81.9]) (amavisd-new, port 10026) with ESMTP id DTRkY8YmeH9v; Tue, 17 Jun 2008 11:51:28 +0300 (EEST) Received: from [172.17.49.48] (sd048.hel.movial.fi [172.17.49.48]) by smtp.movial.fi (Postfix) with ESMTP id 6695CC809E; Tue, 17 Jun 2008 11:51:28 +0300 (EEST) Message-ID: <48577B56.8010008@movial.fi> Date: Tue, 17 Jun 2008 11:52:38 +0300 From: Dmitri Vorobiev Organization: Movial Creative Technologies User-Agent: Icedove 1.5.0.14eol (X11/20080509) MIME-Version: 1.0 To: Ralf Baechle CC: Adrian Bunk , linux-mips@linux-mips.org Subject: Re: [2.6 patch] malta_mtd.c: add MODULE_LICENSE References: <20080615161321.GB7865@cs181133002.pp.htv.fi> <20080616133049.GA24056@linux-mips.org> <48567A12.3050206@movial.fi> <20080616143700.GA28471@linux-mips.org> In-Reply-To: <20080616143700.GA28471@linux-mips.org> Content-Type: multipart/mixed; boundary="------------030806050307080309070502" Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 19576 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dmitri.vorobiev@movial.fi Precedence: bulk X-list: linux-mips This is a multi-part message in MIME format. --------------030806050307080309070502 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ralf Baechle wrote: > On Mon, Jun 16, 2008 at 05:34:58PM +0300, Dmitri Vorobiev wrote: > >> Every time I come across this file I wonder whether this needs to be >> modularized at all. Isn't you chainsaw itching for this as well? :) > > The reason why it was implemented as a module was that due to a MTD > "feature" the code wouldn't compile in 2.6.20 and earlier. So yes, I > chainsawed it into the right shape, patch is on the way to Linus. Looks like Linus has applied the patch. I think that module_init() needs to be replaced by device_initcall() in malta_mtd.c. Not that it would make any difference at all, but just some nitpicking - I simply get a bit nervous and irritated when looking at the `module' word in the core kernel code. :) Patch attached. Dmitri > > Ralf > --------------030806050307080309070502 Content-Type: text/x-patch; name*0="0001--MIPS-Get-rid-of-module_init-in-core-kernel-code.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0001--MIPS-Get-rid-of-module_init-in-core-kernel-code.patch"