Message ID | 008f01ce14af$4283cf90$c78b6eb0$%han@samsung.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDTJ5LFEQQCBBLWAW2EQKGQEV7RPMUY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ye0-f185.google.com (mail-ye0-f185.google.com [209.85.213.185]) (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 125B12C007C for <incoming@patchwork.ozlabs.org>; Wed, 27 Feb 2013 16:57:07 +1100 (EST) Received: by mail-ye0-f185.google.com with SMTP id m1sf73700yen.12 for <incoming@patchwork.ozlabs.org>; Tue, 26 Feb 2013 21:57: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: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=jeUXaI/hnx8vxcv+pmtJvICKOMvM8Hundxvii8ApSrc=; b=Qeieb1iPfqIzMWgr4A/0BTD+iCofgGuThA9QA1EvxV8DYuyvEG2/iDR/GSDHpfc/qC wy8QZDfcXVi/C+xFv9vW7G2wr1tacYRSv1knYYw/q9ROX77LX3X555DlQyQevFyNXPBE 1p/WxvcccX0T24If00u/QfgBQtnG0ZzZ7F55XX6O75sFA2mFvRuD19J8o2iD5gM7FEvL F/ai97f8YB65hEHBDTfQvVI5nQyD+b4OcnQi0z9xOSg5OtIv6O028AlinkdvOpJo0ZTt 6+5vqS3iHjaZOkDM6lqf2erzPJGzovF7KNLYBJF95C06g1AakTssjiRajjxB8ByKwNSC HcMQ== X-Received: by 10.50.157.138 with SMTP id wm10mr95324igb.5.1361944622789; Tue, 26 Feb 2013 21:57:02 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.15.168 with SMTP id y8ls938911igc.5.canary; Tue, 26 Feb 2013 21:57:02 -0800 (PST) X-Received: by 10.66.88.200 with SMTP id bi8mr498076pab.13.1361944622241; Tue, 26 Feb 2013 21:57:02 -0800 (PST) X-Received: by 10.66.88.200 with SMTP id bi8mr498075pab.13.1361944622230; Tue, 26 Feb 2013 21:57:02 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by gmr-mx.google.com with ESMTP id k3si824473pax.1.2013.02.26.21.57.02; Tue, 26 Feb 2013 21:57:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of jg1.han@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MIV00KET76YU6G0@mailout4.samsung.com> for rtc-linux@googlegroups.com; Wed, 27 Feb 2013 14:57:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id AB.0D.17763.C20AD215; Wed, 27 Feb 2013 14:57:01 +0900 (KST) X-AuditID: cbfee690-b7f6b6d000004563-51-512da02cea5a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3A.DD.03918.C20AD215; Wed, 27 Feb 2013 14:57: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 <0MIV00I1Q770WWK0@mmp1.samsung.com> for rtc-linux@googlegroups.com; Wed, 27 Feb 2013 14:57: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, 'Jonghwa Lee' <jonghwa3.lee@samsung.com>, 'Jingoo Han' <jg1.han@samsung.com> Subject: [rtc-linux] [PATCH 1/5] rtc: max77686: use module_platform_driver() Date: Wed, 27 Feb 2013 14:57:00 +0900 Message-id: <008f01ce14af$4283cf90$c78b6eb0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4Ur0Jf3bJm/gOXS5uxDgC3uRXcVg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRmVeSWpSXmKPExsVy+t8zQ13dBbqBBu1KFvs7OxgdGD32TDzJ FsAYxWWTkpqTWZZapG+XwJWxcsdE5oKL7BUXPpxhb2A8zdbFyMkhIWAiMeH+T3YIW0ziwr31 QHEuDiGBZYwSB+/8YoIpWvL6BAtEYhGjROul2YwgCSGBmUwSU/ZGgdhsAmoSX74cBprEwSEi oC/R1qIBUs8ssJNR4uHq22D1wgIOEisOLmMCqWERUJU48loVxOQVsJW4sd4NpIJXQFDix+R7 LCA2s4CWxPqdx5kgbHmJzWveMoOUSwioSzz6qwuxSE9i5htLiAoRiX0v3jFCHNzNLnFqYhWI zSIgIPFt8iEWiE5ZiU0HmCFKJCUOrrjBMoFRbBaSvbOQ7J2FZO8sJBsWMLKsYhRNLUguKE5K LzLRK07MLS7NS9dLzs/dxAiJkAk7GO8dsD7EmAy0fiKzlGhyPjDC8kriDY2NTcxMTE3MLU3N TUkTVhLnlb8kEygkkJ5YkpqdmlqQWhRfVJqTWnyIkYmDU6qBUe9abbGZoOKJfV+YXpRUHBcU npStemTnhwf7xW9dSjk9Zeqt89JVrNO5TL6IxnZ//BFz3eT98f9bPnLZPL8RcLF5akO8XoHO YqsDIkeqLru7FS+x2R79oMK9ZF3exbatMw5J+lUtyNph/c/p57Sr7+XV46v3LXwacM1MK1BZ RvDD4Y6s0zV20kosxRmJhlrMRcWJAHz4EaimAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEIsWRmVeSWpSXmKPExsVy+t9jAV2dBbqBBh9mWlrs7+xgdGD02DPx JFsAY1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO 0FglhbLEnFKgUEBicbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGEdY8bKHROZCy6yV1z4cIa9 gfE0WxcjJ4eEgInEktcnWCBsMYkL99YDxbk4hAQWMUq0XprNCJIQEpjJJDFlbxSIzSagJvHl y2H2LkYODhEBfYm2Fg2QemaBnYwSD1ffBqsXFnCQWHFwGRNIDYuAqsSR16ogJq+ArcSN9W4g FbwCghI/Jt8DW8ssoCWxfudxJghbXmLzmrfMIOUSAuoSj/7qQizSk5j5xhKiQkRi34t3jBMY BWYhGTQLyaBZSAbNQtKygJFlFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkZwDD6T2sG4ssHi EKMAB6MSD++CSzqBQqyJZcWVuYcYJTiYlUR4Px4ACvGmJFZWpRblxxeV5qQWH2JMBvpyIrOU aHI+MD3klcQbGpuYGVkamVkYmZibkyasJM7LeOpJgJBAemJJanZqakFqEcwWJg5OqQbG3Z8l D/AnxmrOrIhQLpW/KsGlbSXf29R6XG0i16Y4gaVKL3TjF/87MoXv93f28Kj3X+fprnzopzwj iG8P39pXh1ju33xiGsZnyPj5YZBBTfayx9c3tS+Tlda9cqU1PlzY/urqjeFJCQZ29wzO5H+P WOlizXV/huOl7Z9cspo2edl3WETOY+5QYinOSDTUYi4qTgQAhJXChAUDAAA= 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.34 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-max77686.c b/drivers/rtc/rtc-max77686.c index 6b1337f..a8e31fc 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -624,17 +624,7 @@ static struct platform_driver max77686_rtc_driver = { .id_table = rtc_id, }; -static int __init max77686_rtc_init(void) -{ - return platform_driver_register(&max77686_rtc_driver); -} -module_init(max77686_rtc_init); - -static void __exit max77686_rtc_exit(void) -{ - platform_driver_unregister(&max77686_rtc_driver); -} -module_exit(max77686_rtc_exit); +module_platform_driver(max77686_rtc_driver); MODULE_DESCRIPTION("Maxim MAX77686 RTC driver"); MODULE_AUTHOR("<woong.byun@samsung.com>");
This patch uses module_platform_driver() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/rtc/rtc-max77686.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-)