Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758381AbaDIIEI (ORCPT ); Wed, 9 Apr 2014 04:04:08 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48827 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758262AbaDIIDy (ORCPT ); Wed, 9 Apr 2014 04:03:54 -0400 Date: Wed, 09 Apr 2014 10:03:52 +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] ALSA: au1x00: use module_platform_driver() In-Reply-To: <1397029352-30889-1-git-send-email-christophjaeger@linux.com> References: <1397029352-30889-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:42:32 +0200, Christoph Jaeger wrote: > > Eliminate boilerplate code by using module_platform_driver(). > > Signed-off-by: Christoph Jaeger Thanks, applied. Takashi > --- > sound/mips/au1x00.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > > diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c > index a7cc49e..d10ef76 100644 > --- a/sound/mips/au1x00.c > +++ b/sound/mips/au1x00.c > @@ -725,15 +725,4 @@ struct platform_driver au1000_ac97c_driver = { > .remove = au1000_ac97_remove, > }; > > -static int __init au1000_ac97_load(void) > -{ > - return platform_driver_register(&au1000_ac97c_driver); > -} > - > -static void __exit au1000_ac97_unload(void) > -{ > - platform_driver_unregister(&au1000_ac97c_driver); > -} > - > -module_init(au1000_ac97_load); > -module_exit(au1000_ac97_unload); > +module_platform_driver(au1000_ac97c_driver); > -- > 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/