From patchwork Thu Jun 6 08:13:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 249317 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qa0-x23f.google.com (mail-qa0-x23f.google.com [IPv6:2607:f8b0:400d:c00::23f]) (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 146DC2C02B4 for ; Thu, 6 Jun 2013 18:13:50 +1000 (EST) Received: by mail-qa0-f63.google.com with SMTP id hv16sf85446qab.18 for ; Thu, 06 Jun 2013 01:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version: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; bh=7tqtZXIQBTSk9Ps6dOGLydusx7pyUCFicprry/kFvaM=; b=mOg5wbLYyfnmtJ1FxjLQykQXcKUfeKeIIHSUiALelOneQnwEqSds2BZqblLckkHFIe iYMxjlzAWe+jMEOTCYxBk60d8ucQSYrFpOPHn3+4eu8wVIlQRXb4f58Mqn8GYRth+2kp SXnwFIYqBFOofaL9MthSXfYyIh6ZNG3IjxlMU3OaUjHs9lKCy8EGP8f6wuGHjPD1mtzl DU9Aenp23IAedVPFDmFtevDtkdjomDdU17wEkxF3Pk3FBM+3/0H64Ory3VxEycIu8+ac Xjrod0TnuJ2AlfRhsWBw8kl/MnW/Y7RJzWfCMDhxatMihDfxYwN8s/jI4Cynh/hvuwXS 4G2A== X-Received: by 10.50.20.136 with SMTP id n8mr1518441ige.5.1370506427853; Thu, 06 Jun 2013 01:13:47 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.153.75 with SMTP id ve11ls1813498igb.22.gmail; Thu, 06 Jun 2013 01:13:47 -0700 (PDT) X-Received: by 10.42.161.71 with SMTP id s7mr27218031icx.18.1370506422526; Thu, 06 Jun 2013 01:13:42 -0700 (PDT) Received: from devils.ext.ti.com (devils.ext.ti.com. [198.47.26.153]) by gmr-mx.google.com with ESMTPS id i6si950600igv.2.2013.06.06.01.13.42 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 06 Jun 2013 01:13:42 -0700 (PDT) Received-SPF: pass (google.com: domain of peter.ujfalusi@ti.com designates 198.47.26.153 as permitted sender) client-ip=198.47.26.153; Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r568DfxW005836; Thu, 6 Jun 2013 03:13:41 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r568DfrQ016018; Thu, 6 Jun 2013 03:13:41 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Thu, 6 Jun 2013 03:13:41 -0500 Received: from barack.itg.ti.com (h0-70.vpn.ti.com [172.24.0.70]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r568DaEX008675; Thu, 6 Jun 2013 03:13:39 -0500 From: Peter Ujfalusi To: Andrew Morton CC: Tony Lindgren , Alessandro Zummo , Thomas Gleixner , , , , Grygorii Strashko , Tomi Valkeinen Subject: [rtc-linux] [PATCH v3 2/2] RTC: rtc-twl: Cleanup with module_platform_driver() conversion Date: Thu, 6 Jun 2013 10:13:38 +0200 Message-ID: <1370506418-1491-2-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1370506418-1491-1-git-send-email-peter.ujfalusi@ti.com> References: <1370506418-1491-1-git-send-email-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-Original-Sender: peter.ujfalusi@ti.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of peter.ujfalusi@ti.com designates 198.47.26.153 as permitted sender) smtp.mail=peter.ujfalusi@ti.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Use module_platform_driver() to register the platform driver. Signed-off-by: Peter Ujfalusi Acked-by: Kevin Hilman --- drivers/rtc/rtc-twl.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index c9060e9..e1776fd 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c @@ -614,17 +614,7 @@ static struct platform_driver twl4030rtc_driver = { }, }; -static int __init twl_rtc_init(void) -{ - return platform_driver_register(&twl4030rtc_driver); -} -module_init(twl_rtc_init); - -static void __exit twl_rtc_exit(void) -{ - platform_driver_unregister(&twl4030rtc_driver); -} -module_exit(twl_rtc_exit); +module_platform_driver(twl4030rtc_driver); MODULE_AUTHOR("Texas Instruments, MontaVista Software"); MODULE_LICENSE("GPL");