From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754562Ab1KXMHu (ORCPT ); Thu, 24 Nov 2011 07:07:50 -0500 Received: from cantor2.suse.de ([195.135.220.15]:52446 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754455Ab1KXMHt (ORCPT ); Thu, 24 Nov 2011 07:07:49 -0500 Date: Thu, 24 Nov 2011 13:07:48 +0100 Message-ID: From: Takashi Iwai To: Axel Lin Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , alsa-devel@alsa-project.org Subject: Re: [PATCH] ALSA: Convert mips directory to module_platform_driver In-Reply-To: <1322131645.2467.2.camel@phoenix> References: <1322131645.2467.2.camel@phoenix> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Thu, 24 Nov 2011 18:47:25 +0800, Axel Lin wrote: > > Factor out some boilerplate code. > > Signed-off-by: Axel Lin > --- > This is a resend of "ASoC: Convert mips directory to module_platform_driver". > Fix the subject line and Cc Takashi. Applied now. Thanks. Takashi > Axel > sound/mips/hal2.c | 13 +------------ > sound/mips/sgio2audio.c | 13 +------------ > 2 files changed, 2 insertions(+), 24 deletions(-) > > diff --git a/sound/mips/hal2.c b/sound/mips/hal2.c > index 2e6c858..5f88d1f 100644 > --- a/sound/mips/hal2.c > +++ b/sound/mips/hal2.c > @@ -935,15 +935,4 @@ static struct platform_driver hal2_driver = { > } > }; > > -static int __init alsa_card_hal2_init(void) > -{ > - return platform_driver_register(&hal2_driver); > -} > - > -static void __exit alsa_card_hal2_exit(void) > -{ > - platform_driver_unregister(&hal2_driver); > -} > - > -module_init(alsa_card_hal2_init); > -module_exit(alsa_card_hal2_exit); > +module_platform_driver(hal2_driver); > diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c > index 69425d4..ceaa593 100644 > --- a/sound/mips/sgio2audio.c > +++ b/sound/mips/sgio2audio.c > @@ -976,15 +976,4 @@ static struct platform_driver sgio2audio_driver = { > } > }; > > -static int __init alsa_card_sgio2audio_init(void) > -{ > - return platform_driver_register(&sgio2audio_driver); > -} > - > -static void __exit alsa_card_sgio2audio_exit(void) > -{ > - platform_driver_unregister(&sgio2audio_driver); > -} > - > -module_init(alsa_card_sgio2audio_init) > -module_exit(alsa_card_sgio2audio_exit) > +module_platform_driver(sgio2audio_driver); > -- > 1.7.5.4 > > >