Message ID | 014f01ce18af$30c95f50$925c1df0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBDNM2GEQKGQEDQ3OCIA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pb0-f60.google.com (mail-pb0-f60.google.com [209.85.160.60]) (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 6A5A22C02F5 for <incoming@patchwork.ozlabs.org>; Mon, 4 Mar 2013 19:06:39 +1100 (EST) Received: by mail-pb0-f60.google.com with SMTP id um15sf2519962pbc.5 for <incoming@patchwork.ozlabs.org>; Mon, 04 Mar 2013 00:06:37 -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=rRoo1nu1g3BTESePdY9b8kB9RYi8m6z1sdtqqdroidY=; b=hOyGlU8hZHHoXQLe94n7KJonbs0qbExkv697M18zN6DfgrHjlNmuFUZt8hIsSWcc0f Z2ATykR4+i8d8GTlJCU/aA5uCdRcVFQC8SAZ67BbXLgobCiEYYnw82Dce5+xRnecCDFo fy21OA6+dbFIK1SAjMbjY7FF5e92kw1wFEAslb18YsS4aUkmG2ws51k/sD+YIKgcCnPN fIFb6ZQb4pNsorqkWs1XmojBQQQZygsdpuXH+C/cTreStqE+zgYHi/lb77Xtl05kc/Za jALqijXaV7RqGNH2qBYujTKW6dKXEJ8GCIE9WqcykovSX480vJLHmxkiMQ8kuoBL1/UR ftig== X-Received: by 10.50.217.225 with SMTP id pb1mr251707igc.5.1362384397192; Mon, 04 Mar 2013 00:06:37 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.237.38 with SMTP id uz6ls353138igc.22.gmail; Mon, 04 Mar 2013 00:06:36 -0800 (PST) X-Received: by 10.66.159.106 with SMTP id xb10mr3929657pab.46.1362384396848; Mon, 04 Mar 2013 00:06:36 -0800 (PST) X-Received: by 10.66.159.106 with SMTP id xb10mr3929655pab.46.1362384396805; Mon, 04 Mar 2013 00:06:36 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by gmr-mx.google.com with ESMTP id ka10si4724153pbb.2.2013.03.04.00.06.36; Mon, 04 Mar 2013 00:06:36 -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 epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ4003TNMIZRBA0@mailout2.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:06:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 69.C6.02494.B0654315; Mon, 04 Mar 2013 17:06:35 +0900 (KST) X-AuditID: cbfee68d-b7f636d0000009be-e2-5134560bcece Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 85.DC.03918.B0654315; Mon, 04 Mar 2013 17:06:35 +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 <0MJ40065MMIZ1160@mmp1.samsung.com> for rtc-linux@googlegroups.com; Mon, 04 Mar 2013 17:06:35 +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 22/24] rtc: rtc-sun4v: use module_platform_driver_probe() Date: Mon, 04 Mar 2013 17:06:35 +0900 Message-id: <014f01ce18af$30c95f50$925c1df0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4YreQ8fe1F97iqQuy+DT8iOTwTtAAAUAwA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t8zQ13uMJNAgxO/zC32d3YwOjB67Jl4 ki2AMYrLJiU1J7MstUjfLoEr49qZSawFH9grvv7Jb2B8zNbFyMEhIWAisXBLZRcjJ5ApJnHh 3no2EFtIYBmjxNNruhBxE4kPHTuB4lxA8UWMEusOHmaHcGYySZy7cZ4VpIpNQE3iyxeQBAeH iIC+RFuLBkgNs0Avo8SZ3t3sEFNtJb48fMAEYnMK2EncP7cKrFdYwFOifcU3sM0sAqoSHceb wOp5geqf/XvICGELSvyYfI8FxGYW0JJYv/M4E4QtL7F5zVtmiGfUJR79BTtaRMBIYv/1+ewQ JSIS+168YwS5R0JgEbtE3/IGdohdAhLfJh9igeiVldh0gBniYUmJgytusExglJiFZPMsJJtn Idk8C8mKBYwsqxhFUwuSC4qT0osM9YoTc4tL89L1kvNzNzFC4qp3B+PtA9aHGJOB1k9klhJN zgfGZV5JvKGxsYmZiamJuaWpuSlpwkrivHKXZAKFBNITS1KzU1MLUovii0pzUosPMTJxcEo1 MLKmOIQnTahfvanr/i5OddOy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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-sun4v.c b/drivers/rtc/rtc-sun4v.c index 59b5c2d..7c51c49 100644 --- a/drivers/rtc/rtc-sun4v.c +++ b/drivers/rtc/rtc-sun4v.c @@ -106,18 +106,7 @@ static struct platform_driver sun4v_rtc_driver = { .remove = __exit_p(sun4v_rtc_remove), }; -static int __init sun4v_rtc_init(void) -{ - return platform_driver_probe(&sun4v_rtc_driver, sun4v_rtc_probe); -} - -static void __exit sun4v_rtc_exit(void) -{ - platform_driver_unregister(&sun4v_rtc_driver); -} - -module_init(sun4v_rtc_init); -module_exit(sun4v_rtc_exit); +module_platform_driver_probe(sun4v_rtc_driver, sun4v_rtc_probe); MODULE_AUTHOR("David S. Miller <davem@davemloft.net>"); MODULE_DESCRIPTION("SUN4V RTC driver");
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-sun4v.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)