Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755190Ab3E0JdX (ORCPT ); Mon, 27 May 2013 05:33:23 -0400 Received: from ams-iport-1.cisco.com ([144.254.224.140]:32228 "EHLO ams-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525Ab3E0JdW (ORCPT ); Mon, 27 May 2013 05:33:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgsFAFQno1GQ/khN/2dsb2JhbABagwiDa75KgQUWdIIjAQEFI1YQCxgCAiYCAlcGE4gNq3mRJYEmjXcHgkGBEwOXO4obhyWBWIE5Og X-IronPort-AV: E=Sophos;i="4.87,750,1363132800"; d="scan'208";a="154591511" From: Hans Verkuil To: Libo Chen Subject: Re: [PATCH 22/24] drivers/media/radio/radio-maxiradio: Convert to module_pci_driver Date: Mon, 27 May 2013 11:32:57 +0200 User-Agent: KMail/1.13.7 (Linux/3.9-2.slh.1-aptosid-amd64; KDE/4.8.4; x86_64; ; ) Cc: mchehab@redhat.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, lizefan@huawei.com, gregkh@linuxfoundation.org References: <1369621919-12800-1-git-send-email-libo.chen@huawei.com> In-Reply-To: <1369621919-12800-1-git-send-email-libo.chen@huawei.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201305271132.57946.hverkuil@xs4all.nl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 38 On Mon 27 May 2013 04:31:59 Libo Chen wrote: > use module_pci_driver instead of init/exit, make code clean > > Signed-off-by: Libo Chen Acked-by: Hans Verkuil > --- > drivers/media/radio/radio-maxiradio.c | 13 +------------ > 1 files changed, 1 insertions(+), 12 deletions(-) > > diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c > index bd4d3a7..1d1c9e1 100644 > --- a/drivers/media/radio/radio-maxiradio.c > +++ b/drivers/media/radio/radio-maxiradio.c > @@ -200,15 +200,4 @@ static struct pci_driver maxiradio_driver = { > .remove = maxiradio_remove, > }; > > -static int __init maxiradio_init(void) > -{ > - return pci_register_driver(&maxiradio_driver); > -} > - > -static void __exit maxiradio_exit(void) > -{ > - pci_unregister_driver(&maxiradio_driver); > -} > - > -module_init(maxiradio_init); > -module_exit(maxiradio_exit); > +module_pci_driver(maxiradio_driver); > -- 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/