From patchwork Wed Dec 19 02:47:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Lo X-Patchwork-Id: 207236 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qa0-f63.google.com (mail-qa0-f63.google.com [209.85.216.63]) (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 464E32C0089 for ; Wed, 19 Dec 2012 13:47:42 +1100 (EST) Received: by mail-qa0-f63.google.com with SMTP id hy16sf803960qab.8 for ; Tue, 18 Dec 2012 18:47:39 -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-pgp-universal:from:to:cc:subject:date:message-id:x-mailer :x-nvconfidentiality: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=9f8cZzq4Tf+zo+L8kHd2qEDgvIgmKTWdc4Y/UYPpkOg=; b=f3hfKIszLI/yY/n0JlJAfxa91vX1mvp68UWm1ZcYUAWuniN7fEo4a7WvFwDSjgIcHy r0EF6Z57CY7LLGm6F78lJdJ/+JJwbEDAq2fSDQ67J58o6wSiSsk97F3MjZny3LRlNok4 0IO1Y492dEx3dbItGDLeqJ9PCzhkRhMrFt5Hxu3c7DUXIDgqMZ/+csaZewuFtaAjyacF 63FnpOld3CEunrNDdrtersFRAKfO7KHIMweFRsrHBLBNww4ujADQeOCP16HUXWLeBCu8 SZylWl46NlXx7aUXGlM7fYAbTM/kZ24WRQbXLbex7vg5Qouvqcb+b2K2cgMmUqc4sU8Q Dnmg== X-Received: by 10.50.135.33 with SMTP id pp1mr72540igb.14.1355885259264; Tue, 18 Dec 2012 18:47:39 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.15.168 with SMTP id y8ls5079680igc.42.canary; Tue, 18 Dec 2012 18:47:38 -0800 (PST) X-Received: by 10.66.74.135 with SMTP id t7mr498630pav.29.1355885258538; Tue, 18 Dec 2012 18:47:38 -0800 (PST) X-Received: by 10.66.74.135 with SMTP id t7mr498629pav.29.1355885258528; Tue, 18 Dec 2012 18:47:38 -0800 (PST) Received: from hqemgate04.nvidia.com (hqemgate04.nvidia.com. [216.228.121.35]) by gmr-mx.google.com with ESMTPS id e1si765077paz.0.2012.12.18.18.47.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 18:47:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of josephl@nvidia.com designates 216.228.121.35 as permitted sender) client-ip=216.228.121.35; Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate04.nvidia.com id ; Tue, 18 Dec 2012 18:47:14 -0800 Received: from hqemhub01.nvidia.com ([172.17.108.22]) by hqnvupgp08.nvidia.com (PGP Universal service); Tue, 18 Dec 2012 18:47:33 -0800 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Tue, 18 Dec 2012 18:47:33 -0800 Received: from localhost.localdomain (172.20.144.16) by hqemhub01.nvidia.com (172.20.150.30) with Microsoft SMTP Server (TLS) id 8.3.279.1; Tue, 18 Dec 2012 18:47:33 -0800 From: Joseph Lo To: Alessandro Zummo , Stephen Warren CC: , , , Joseph Lo Subject: [rtc-linux] [PATCH] rtc: tegra: convert to DT driver Date: Wed, 19 Dec 2012 10:47:17 +0800 Message-ID: <1355885237-4448-1-git-send-email-josephl@nvidia.com> X-Mailer: git-send-email 1.7.0.4 X-NVConfidentiality: public MIME-Version: 1.0 X-Original-Sender: josephl@nvidia.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of josephl@nvidia.com designates 216.228.121.35 as permitted sender) smtp.mail=josephl@nvidia.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: , After Kernel 3.7, the Tegra device will only support booting with DT. The legacy Tegra RTC platform driver will not work anymore. This patch convert the driver to support DT. Signed-off-by: Joseph Lo --- drivers/rtc/rtc-tegra.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index c006025..fb62808 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -303,6 +303,12 @@ static struct rtc_class_ops tegra_rtc_ops = { .alarm_irq_enable = tegra_rtc_alarm_irq_enable, }; +static const struct of_device_id tegra_rtc_dt_match[] = { + { .compatible = "nvidia,tegra20-rtc", }, + {} +}; +MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match); + static int __devinit tegra_rtc_probe(struct platform_device *pdev) { struct tegra_rtc_info *info; @@ -440,6 +446,7 @@ static struct platform_driver tegra_rtc_driver = { .driver = { .name = "tegra_rtc", .owner = THIS_MODULE, + .of_match_table = tegra_rtc_dt_match, }, #ifdef CONFIG_PM .suspend = tegra_rtc_suspend,