Message ID | 014901ce18ae$d42b0b90$7c8122b0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBB4NK2GEQKGQEDJZ37EY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vc0-f183.google.com (mail-vc0-f183.google.com [209.85.220.183]) (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 66B1F2C02F3 for <incoming@patchwork.ozlabs.org>; Mon, 4 Mar 2013 19:04:04 +1100 (EST) Received: by mail-vc0-f183.google.com with SMTP id m18sf2572102vcm.0 for <incoming@patchwork.ozlabs.org>; Mon, 04 Mar 2013 00:04:02 -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=Q8Eh7S1xajPLAXNGsM1JNtc4MsF5sjgTO8hoYxJl3X0=; b=m1J/O98oULcKt6mSPH/PQYCnvxxljC6+hlUzPA4fswAt6lfUjBSNc99GTAxVyrpl+h VxEeAV/u749W9Cu7zoXZIZHwNw70XGpg9q6MTutuKOgoBspas3J+Q/tz3ej/aeTQ02L1 BJ8gwYD4SdpKEluuGr/mtsMUpKe+dXL9bnmpKDSVTiKnKFcn5HeCBtizDjeW/xDKXvJ3 8gBtHzGH+LBWnzTCmJ5DjDUGxrU5enWfDxvAaN0tYmnl1VukjpljrtHd0MpzukrWcDgm /xWu3eVRdRuvXw2/6pK90vL18LKt6kS5mUVx2fIxGFjO2NVF/FtyrpZj/UeEBph109pi hCcw== X-Received: by 10.50.157.138 with SMTP id wm10mr250800igb.5.1362384241805; Mon, 04 Mar 2013 00:04:01 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.158.225 with SMTP id wx1ls346590igb.21.canary; Mon, 04 Mar 2013 00:04:01 -0800 (PST) X-Received: by 10.66.251.193 with SMTP id zm1mr3106962pac.15.1362384241425; Mon, 04 Mar 2013 00:04:01 -0800 (PST) X-Received: by 10.66.251.193 with SMTP id zm1mr3106961pac.15.1362384241399; Mon, 04 Mar 2013 00:04:01 -0800 (PST) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by gmr-mx.google.com with ESMTP id ir9si3119962pbc.1.2013.03.04.00.04.01; Mon, 04 Mar 2013 00:04:01 -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 epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ400JMDMD0EX40@mailout3.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:04:00 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id CF.29.17763.07554315; Mon, 04 Mar 2013 17:04:00 +0900 (KST) X-AuditID: cbfee690-b7f6b6d000004563-c3-513455706eda Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B3.2C.03918.07554315; Mon, 04 Mar 2013 17:04:00 +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 <0MJ4005I7MEOOU70@mmp1.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:04:00 +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 16/24] rtc: rtc-pcap: use module_platform_driver_probe() Date: Mon, 04 Mar 2013 17:04:00 +0900 Message-id: <014901ce18ae$d42b0b90$7c8122b0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4YreQ8fe1F97iqQuy+DT8iOTwTtAAAN99g X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsVy+t8zQ92CUJNAg3u/5S32d3YwOjB67Jl4 ki2AMYrLJiU1J7MstUjfLoEr42zPataC/ewVTV1/GRsYt7J1MXJySAiYSDw4cxjKFpO4cG89 kM3FISSwjFHi5q5Oli5GDrCinbN1IOKLGCW2z33MCuHMZJLoXj2XBaSbTUBN4suXw+wgDSIC +hJtLRogNcwCvYwSZ3p3s4PUCAnYSnx5+IAJxOYUsJO4f24VK4gtLOAhcf3jNLA4i4CqROuh i2wgc3iB6l+uCwcJ8woISvyYfA9sFbOAlsT6nceZIGx5ic1r3jJD3Kku8eivLkhYRMBI4tzq XVDlIhL7XrxjBDlHQmAZu8SP1nZmiFUCEt8mH4L6UVZi0wFmSDhIShxccYNlAqPELCSbZyHZ PAvJ5llIVixgZFnFKJpakFxQnJReZKJXnJhbXJqXrpecn7uJERJZE3Yw3jtgfYgxGWj9RGYp 0eR8YGTmlcQbGhubmJmYmphbmpqbkiasJM4rf0kmUEggPbEkNTs1tSC1KL6oNCe1+BAjEwen VAPjc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JwI AA1LSpUfAwAA 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.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-pcap.c b/drivers/rtc/rtc-pcap.c index 48db88a..ce09824 100644 --- a/drivers/rtc/rtc-pcap.c +++ b/drivers/rtc/rtc-pcap.c @@ -203,18 +203,7 @@ static struct platform_driver pcap_rtc_driver = { }, }; -static int __init rtc_pcap_init(void) -{ - return platform_driver_probe(&pcap_rtc_driver, pcap_rtc_probe); -} - -static void __exit rtc_pcap_exit(void) -{ - platform_driver_unregister(&pcap_rtc_driver); -} - -module_init(rtc_pcap_init); -module_exit(rtc_pcap_exit); +module_platform_driver_probe(pcap_rtc_driver, pcap_rtc_probe); MODULE_DESCRIPTION("Motorola pcap rtc driver"); MODULE_AUTHOR("guiming zhuo <gmzhuo@gmail.com>");
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-pcap.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)