From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Date: Tue, 16 Oct 2012 09:07:48 +0000 Subject: Re: [PATCH 2/2] ASoC: atmel-ssc: use module_platform_driver macro Message-Id: <20121016090748.GX21164@n2100.arm.linux.org.uk> List-Id: References: <1350359819-2461-1-git-send-email-voice.shen@atmel.com> <1350359819-2461-2-git-send-email-voice.shen@atmel.com> <507D15C2.7000606@atmel.com> <20121016084947.GD12801@game.jcrosoft.org> In-Reply-To: <20121016084947.GD12801@game.jcrosoft.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre , alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, Wolfram Sang , linux-sound@vger.kernel.org, Bo Shen , linux-arm-kernel@lists.infradead.org On Tue, Oct 16, 2012 at 10:49:47AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 10:07 Tue 16 Oct , Nicolas Ferre wrote: > > On 10/16/2012 05:56 AM, Bo Shen : > > > -static int __init ssc_probe(struct platform_device *pdev) > > > +static int ssc_probe(struct platform_device *pdev) > > > > Here you remove the __init altogether, maybe converting to __devinit is > > the proper replacement for this? I do not know myself but if anybody knows? > yes __devinit is mandatory No it isn't. __init is plain buggy. __devinit is better, but there's plans to remove all __devinit from the kernel. Having nothing there will make GregKH's life a lot easier when he does come to remove __devinit.