Message ID | 015001ce18af$406753e0$c135fba0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBJ5M2GEQKGQEPWIH6FI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vc0-f190.google.com (mail-vc0-f190.google.com [209.85.220.190]) (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 E1B3A2C02F5 for <incoming@patchwork.ozlabs.org>; Mon, 4 Mar 2013 19:07:05 +1100 (EST) Received: by mail-vc0-f190.google.com with SMTP id fl15sf2204715vcb.17 for <incoming@patchwork.ozlabs.org>; Mon, 04 Mar 2013 00:07:03 -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=bNqUjofKwZHNk/hg6q4SBoVxDk2uQcKSZdfI/hiIx9Y=; b=UXKLtCxJTOJLlorpmFoTuiK92+0wUI+jAzINFDxgsPBuhFmtnk3unhTPONf86I+Z+F ChAUP3yzQ80YSgjJqA4ntFWuyIzlLWhUNBvIWQHZaVpQ69dX7vam2RQLawEmMvaud6vL KEGQYQxovJ5pwO/4Dtq6u4OtPVBBmgsv7vcWs4eUswigTbcIFDwGiQvbG3cFUUtmcTQk u53rvW5PcH18Q4GxPww4+97n7MI2cGPu3bOMBMrmz1jyHexG1e46YsqFn1HtsGcQoV8j 2vP4juuyS6onhk58WWxWToDIJBHaDsW4YWTiarEjdBOo4kLzn2kRyWour8ZnFrPcFNtC GmHw== X-Received: by 10.50.53.166 with SMTP id c6mr246215igp.12.1362384423351; Mon, 04 Mar 2013 00:07:03 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.33.178 with SMTP id s18ls368087igi.32.canary; Mon, 04 Mar 2013 00:07:03 -0800 (PST) X-Received: by 10.66.90.67 with SMTP id bu3mr3948359pab.45.1362384423068; Mon, 04 Mar 2013 00:07:03 -0800 (PST) X-Received: by 10.66.90.67 with SMTP id bu3mr3948358pab.45.1362384423057; Mon, 04 Mar 2013 00:07:03 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id k3si4803397pax.1.2013.03.04.00.07.02; Mon, 04 Mar 2013 00:07:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ4004PXMJQOZA0@mailout2.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:07:02 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 6B.62.25214.62654315; Mon, 04 Mar 2013 17:07:02 +0900 (KST) X-AuditID: cbfee68e-b7fa46d00000627e-9d-51345626694e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id AB.EC.03918.52654315; Mon, 04 Mar 2013 17:07:02 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ400GB0MJPTH60@mmp2.samsung.com>; Mon, 04 Mar 2013 17:07:01 +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 23/24] rtc: rtc-tegra: use module_platform_driver_probe() Date: Mon, 04 Mar 2013 17:07:01 +0900 Message-id: <015001ce18af$406753e0$c135fba0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4YreQ8fe1F97iqQuy+DT8iOTwTtAAAU/DQ X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBIsWRmVeSWpSXmKPExsVy+t8zI121MJNAg6d9nBZLLl5lt5izfg2b xeWFl1gtLu+aw2axv7OD0YHVY8/Ek2weJ2b8ZvHo27KK0WP6vJ9MHp83yQWwRnHZpKTmZJal FunbJXBlTLx3hLHgHHvFmoctzA2Mx9i6GDk5JARMJO5NnM8OYYtJXLi3HijOxSEksIxR4tqZ hawwRScfdLJAJKYzStz61MQO4fxilOg8t5QFpIpNQE3iy5fDQAkODhEBfYm2Fg2QGmaBXkaJ M727wVYICdhKfHn4gAnE5hSwk7h/bhXYBmEBT4nJrVfBbBYBVYntWz6A2bxA9ct2b4eyBSV+ TL4HtotZQEti/c7jTBC2vMTmNW+ZQfZKCKhLPPqrCxIWETCSeDTtMRtEiYjEvhfvGEHukRC4 xy6xfOJ3JohdAhLfJh9igeiVldh0gBniYUmJgytusExglJiFZPMsJJtnIdk8C8mKBYwsqxhF UwuSC4qT0ouM9IoTc4tL89L1kvNzNzFCYrVvB+PNA9aHGJOB1k9klhJNzgfGel5JvKGxsYmZ iamJuaWpuSlpwkrivPKXZAKFBNITS1KzU1MLU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XZH9kfyvBB2pRj22Jon7px7lqh7Ydjr1ZJ/E iVfPfU36/P96fJI1miVdy8C31HjJ2Qfl/5/nnFNiKc5INNRiLipOBAB0eGEkSAMAAA== DLP-Filter: Pass X-MTR: 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.25 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-tegra.c b/drivers/rtc/rtc-tegra.c index 0020bab..9447d65 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -452,17 +452,7 @@ static struct platform_driver tegra_rtc_driver = { #endif }; -static int __init tegra_rtc_init(void) -{ - return platform_driver_probe(&tegra_rtc_driver, tegra_rtc_probe); -} -module_init(tegra_rtc_init); - -static void __exit tegra_rtc_exit(void) -{ - platform_driver_unregister(&tegra_rtc_driver); -} -module_exit(tegra_rtc_exit); +module_platform_driver_probe(tegra_rtc_driver, tegra_rtc_probe); MODULE_AUTHOR("Jon Mayo <jmayo@nvidia.com>"); MODULE_DESCRIPTION("driver for Tegra internal RTC");
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-tegra.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)