Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758389AbaDIIF2 (ORCPT ); Wed, 9 Apr 2014 04:05:28 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48837 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbaDIIEF (ORCPT ); Wed, 9 Apr 2014 04:04:05 -0400 Date: Wed, 09 Apr 2014 10:04:04 +0200 Message-ID: From: Takashi Iwai To: Christoph Jaeger Cc: perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound: dmasound: use module_platform_driver_probe() In-Reply-To: <1397029433-30934-1-git-send-email-christophjaeger@linux.com> References: <1397029433-30934-1-git-send-email-christophjaeger@linux.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.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 Wed, 9 Apr 2014 09:43:53 +0200, Christoph Jaeger wrote: > > Eliminate boilerplate code by using module_platform_driver_probe(). > > Signed-off-by: Christoph Jaeger Thanks, applied. Takashi > --- > sound/oss/dmasound/dmasound_paula.c | 14 +------------- > 1 file changed, 1 insertion(+), 13 deletions(-) > > diff --git a/sound/oss/dmasound/dmasound_paula.c b/sound/oss/dmasound/dmasound_paula.c > index 87910e9..c2d45a5 100644 > --- a/sound/oss/dmasound/dmasound_paula.c > +++ b/sound/oss/dmasound/dmasound_paula.c > @@ -733,19 +733,7 @@ static struct platform_driver amiga_audio_driver = { > }, > }; > > -static int __init amiga_audio_init(void) > -{ > - return platform_driver_probe(&amiga_audio_driver, amiga_audio_probe); > -} > - > -module_init(amiga_audio_init); > - > -static void __exit amiga_audio_exit(void) > -{ > - platform_driver_unregister(&amiga_audio_driver); > -} > - > -module_exit(amiga_audio_exit); > +module_platform_driver_probe(amiga_audio_driver, amiga_audio_probe); > > MODULE_LICENSE("GPL"); > MODULE_ALIAS("platform:amiga-audio"); > -- > 1.9.0 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/