From patchwork Tue Oct 28 09:58:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 404153 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vc0-x23c.google.com (mail-vc0-x23c.google.com [IPv6:2607:f8b0:400c:c03::23c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 271FA14007F for ; Tue, 28 Oct 2014 21:00:12 +1100 (AEDT) Received: by mail-vc0-f188.google.com with SMTP id lf12sf42917vcb.15 for ; Tue, 28 Oct 2014 03:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=c67V8Ah/v21BL7J2/5K0iHlTdP8iieVSHMzUjG1gh6Q=; b=pW6q4GnRp8P+it0pW4a6eFWSp/M6AMH+wFHcEgkFPd9DhFwTcjlB353+Kb3pc8NYgN HFmYVy9RnaS+uapqwh6ocjMmNaXv48SCINgHS5BrNtcrloLNiDalcaqRIPIZll87lpY5 HueBunMINGoyoiftWzzLNj3E0Gs5gcSylanan6LJXvdkTk4ebVMDZ78bEyBNeoMIv4iI AQ53tmvhOQd3mNpYro3dsbuYeZabGcbalcapCy0eqCNJbgn2HU8M8eezDbAxBNLE43Ep 85+Jj6AuTyEZRtSuGBW3kuA57Bp33OEztZIn3uecGharovHNQfGVz3shnBbuDc67KBGO NiWA== X-Received: by 10.140.40.20 with SMTP id w20mr43943qgw.2.1414490410741; Tue, 28 Oct 2014 03:00:10 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.31.8 with SMTP id e8ls117132qge.37.gmail; Tue, 28 Oct 2014 03:00:10 -0700 (PDT) X-Received: by 10.236.16.194 with SMTP id h42mr1543210yhh.13.1414490410511; Tue, 28 Oct 2014 03:00:10 -0700 (PDT) Received: from comal.ext.ti.com (comal.ext.ti.com. [198.47.26.152]) by gmr-mx.google.com with ESMTPS id 19si106031igl.2.2014.10.28.03.00.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 28 Oct 2014 03:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of lokeshvutla@ti.com designates 198.47.26.152 as permitted sender) client-ip=198.47.26.152; Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9SA080V030281; Tue, 28 Oct 2014 05:00:08 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9SA08Z5022726; Tue, 28 Oct 2014 05:00:08 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 28 Oct 2014 05:00:07 -0500 Received: from a0131933.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9S9xxJe031401; Tue, 28 Oct 2014 05:00:04 -0500 From: Lokesh Vutla To: , CC: , , , , , , , , , , Subject: [rtc-linux] [PATCH V4 1/3] rtc: omap: use module_platform_driver Date: Tue, 28 Oct 2014 15:28:50 +0530 Message-ID: <1414490332-14856-2-git-send-email-lokeshvutla@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414490332-14856-1-git-send-email-lokeshvutla@ti.com> References: <1414490332-14856-1-git-send-email-lokeshvutla@ti.com> MIME-Version: 1.0 X-Original-Sender: lokeshvutla@ti.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of lokeshvutla@ti.com designates 198.47.26.152 as permitted sender) smtp.mail=lokeshvutla@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: , List-Unsubscribe: , module_platform_driver_probe() prevents driver from requesting probe deferral. So using module_platform_drive() to support probe deferral. And also removing .owner field which is set by module_platform_driver. Reviewed-by: Johan Hovold Reviewed-by: Felipe Balbi Signed-off-by: Lokesh Vutla --- drivers/rtc/rtc-omap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index e74750f..d9bb5e7 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c @@ -477,7 +477,7 @@ static const struct of_device_id omap_rtc_of_match[] = { }; MODULE_DEVICE_TABLE(of, omap_rtc_of_match); -static int __init omap_rtc_probe(struct platform_device *pdev) +static int omap_rtc_probe(struct platform_device *pdev) { struct omap_rtc *rtc; struct resource *res; @@ -708,18 +708,18 @@ static void omap_rtc_shutdown(struct platform_device *pdev) } static struct platform_driver omap_rtc_driver = { + .probe = omap_rtc_probe, .remove = __exit_p(omap_rtc_remove), .shutdown = omap_rtc_shutdown, .driver = { .name = "omap_rtc", - .owner = THIS_MODULE, .pm = &omap_rtc_pm_ops, .of_match_table = omap_rtc_of_match, }, .id_table = omap_rtc_id_table, }; -module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); +module_platform_driver(omap_rtc_driver); MODULE_ALIAS("platform:omap_rtc"); MODULE_AUTHOR("George G. Davis (and others)");