Message ID | 014101ce18ae$5911fbd0$0b35f370$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBK5J2GEQKGQEIO5CZLY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-f59.google.com (mail-pa0-f59.google.com [209.85.220.59]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 986132C030B for <incoming@patchwork.ozlabs.org>; Mon, 4 Mar 2013 19:00:45 +1100 (EST) Received: by mail-pa0-f59.google.com with SMTP id hz1sf2655984pad.24 for <incoming@patchwork.ozlabs.org>; Mon, 04 Mar 2013 00:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf:x-auditid :from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:x-mailer:thread-index:x-brightmail-tracker :x-brightmail-tracker:dlp-filter:x-mtr:x-cfilter-loop :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type:content-language; bh=ENdZQkUC4AwdSTUweiV5wzBRfLudXxvnuQEvHbwFtyk=; b=IzE3YiNK/pYi1zP9Cb4Hw/eBuuipS5pQqL9yPyfkGltnwabGQfPlK4ZrpzRMsZIkof T4gfwS6CNzcMf0FDObpwd7i805E+UvNio10AinDsreDwTnuG2pcFXouILn0UB9X70SoI BrrtxI3zXURprZo6gd3LkxZxUGfTTxFykVf0E5YKigHo40dvI54xfdWipN2AP169Rlkh yuGJk5a+VoINY4i8xND5v9Zc75j66YCTtYuP+vsNXsmHslAs1klmRNFdH0/JjuN1c4rk NpMIqCi85eSLW4vYqgwpnedgzWPqF1NDCLkVhbXnltCOEbFgFxzuoKimw20N6OniXrCn mtKw== X-Received: by 10.50.187.133 with SMTP id fs5mr251971igc.12.1362384043379; Mon, 04 Mar 2013 00:00:43 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.220.138 with SMTP id pw10ls347943igc.22.canary; Mon, 04 Mar 2013 00:00:43 -0800 (PST) X-Received: by 10.66.162.163 with SMTP id yb3mr3192372pab.14.1362384043101; Mon, 04 Mar 2013 00:00:43 -0800 (PST) X-Received: by 10.66.162.163 with SMTP id yb3mr3192371pab.14.1362384043092; Mon, 04 Mar 2013 00:00:43 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by gmr-mx.google.com with ESMTP id d9si4798873paw.0.2013.03.04.00.00.42; Mon, 04 Mar 2013 00:00:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ400BQ9M7T9JA0@mailout3.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:00:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 27.6E.25214.1A454315; Mon, 04 Mar 2013 17:00:33 +0900 (KST) X-AuditID: cbfee68e-b7fa46d00000627e-bb-513454a1c5c6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 37.14.03880.1A454315; Mon, 04 Mar 2013 17:00:33 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ4005I9M8XYR50@mmp1.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:00:33 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Andrew Morton' <akpm@linux-foundation.org> Cc: linux-kernel@vger.kernel.org, 'Alessandro Zummo' <a.zummo@towertech.it>, rtc-linux@googlegroups.com, 'Jingoo Han' <jg1.han@samsung.com> References: <013a01ce18ad$e45caa10$ad15fe30$%han@samsung.com> In-reply-to: <013a01ce18ad$e45caa10$ad15fe30$%han@samsung.com> Subject: [rtc-linux] [PATCH 08/24] rtc: rtc-efi: use module_platform_driver_probe() Date: Mon, 04 Mar 2013 17:00:33 +0900 Message-id: <014101ce18ae$5911fbd0$0b35f370$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4YreQ8fe1F97iqQuy+DT8iOTwTtAAAGkBA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsVy+t8zQ92FISaBBruu21js7+xgdGD02DPx JFsAYxSXTUpqTmZZapG+XQJXxvU965gLtrBXzN/xlKmBcTVbFyMnh4SAicTWcw1MELaYxIV7 64HiXBxCAssYJX6s+MsEUzTp4EGoxCJGif1NV1khnJlMEusP/WUGqWITUJP48uUwexcjB4eI gL5EW4sGSA2zQC+jxJne3ewgNUICthJfHj4Am8opYCdx/9wqVhBbWMBd4uLb+2A2i4CqRPOT /2D1vED1Z/f8g7IFJX5MvscCYjMLaEms33mcCcKWl9i85i0zyF4JAXWJR391QcIiAkYSs57+ Z4MoEZHY9+IdI8g9EgKr2CWa9i9ngtglIPFt8iEWiF5ZiU0HmCEelpQ4uOIGywRGiVlINs9C snkWks2zkKxYwMiyilE0tSC5oDgpvchIrzgxt7g0L10vOT93EyMkuvp2MN48YH2IMRlo/URm KdHkfGB05pXEGxobm5iZmJqYW5qam5ImrCTOK39JJlBIID2xJDU7NbUgtSi+qDQntfgQIxMH p1QDo9/E3yELvh+53u0vffTvne02favOr3myZWZu4dYc1cCGO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TR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Original-Sender: jg1.han@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=jg1.han@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-type: text/plain; charset=ISO-8859-1 Content-language: ko |
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 1a0c37c..e706662 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -218,18 +218,7 @@ static struct platform_driver efi_rtc_driver = { .remove = __exit_p(efi_rtc_remove), }; -static int __init efi_rtc_init(void) -{ - return platform_driver_probe(&efi_rtc_driver, efi_rtc_probe); -} - -static void __exit efi_rtc_exit(void) -{ - platform_driver_unregister(&efi_rtc_driver); -} - -module_init(efi_rtc_init); -module_exit(efi_rtc_exit); +module_platform_driver_probe(efi_rtc_driver, efi_rtc_probe); MODULE_AUTHOR("dann frazier <dannf@hp.com>"); MODULE_LICENSE("GPL");
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/rtc/rtc-efi.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)