From patchwork Fri Aug 16 11:36:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Gururaja" X-Patchwork-Id: 267622 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gh0-x23e.google.com (mail-gh0-x23e.google.com [IPv6:2607:f8b0:4002:c05::23e]) (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 D908E2C009C for ; Fri, 16 Aug 2013 21:37:22 +1000 (EST) Received: by mail-gh0-f190.google.com with SMTP id y8sf558929ghb.7 for ; Fri, 16 Aug 2013 04:37:20 -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=JcV+c/6w4tDzAQvCaUWbc3tc+toOWHOahmV/N69byrE=; b=YlkhpMbcxkydDqourXBdGN3rca0GPiyf5YrieB2j8RODO//LallfDvqWHeDy9Lg+DZ 9G8WPfgT2/1wjEjqG9Bgu2Z0XNMmlsRGSnExfmvGnwpcjyF5+26zoRmbuyXgDGAmMaCl HFE34Ah9blA6EccAZg0UDjV9F39rnFVf/32JFgIi+0Dkq8E8LGycW/nO45+6TKXpocc7 FJw4kvW/cIqKlZYQoE+lTMJiBkCDzRZXGOlyPBqULw0CGtNDCN4df9uWTUB9WqvxwMEt 7E7QH7zc+xDURSPDV70It3fmjxApRAYvLRrXgBrW1Hj9EI/fdsKp2BrRJi9rwZglBxkb k7Gg== X-Received: by 10.50.92.100 with SMTP id cl4mr42195igb.8.1376653039887; Fri, 16 Aug 2013 04:37:19 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.110.69 with SMTP id hy5ls507857igb.31.canary; Fri, 16 Aug 2013 04:37:19 -0700 (PDT) X-Received: by 10.42.105.206 with SMTP id w14mr557189ico.26.1376653039569; Fri, 16 Aug 2013 04:37:19 -0700 (PDT) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com. [192.94.94.40]) by gmr-mx.google.com with ESMTPS id i7si130328iga.1.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 16 Aug 2013 04:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of gururaja.hebbar@ti.com designates 192.94.94.40 as permitted sender) client-ip=192.94.94.40; Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r7GBbAk8028646; Fri, 16 Aug 2013 06:37:10 -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 r7GBbAvm024964; Fri, 16 Aug 2013 06:37:10 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Fri, 16 Aug 2013 06:37:10 -0500 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r7GBaxO2019561; Fri, 16 Aug 2013 06:37:05 -0500 From: "Hebbar, Gururaja" To: , , , CC: , , , , , , , , , , , , Subject: [rtc-linux] [PATCH v3 1/2] rtc: omap: update of_device_id to reflect latest ip revisions Date: Fri, 16 Aug 2013 17:06:56 +0530 Message-ID: <1376653017-21935-2-git-send-email-gururaja.hebbar@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1376653017-21935-1-git-send-email-gururaja.hebbar@ti.com> References: <1376653017-21935-1-git-send-email-gururaja.hebbar@ti.com> MIME-Version: 1.0 X-Original-Sender: gururaja.hebbar@ti.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gururaja.hebbar@ti.com designates 192.94.94.40 as permitted sender) smtp.mail=gururaja.hebbar@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: , The syntax of compatible property in DT is to mention the Most specific match to most generic match. Since AM335x is the platform with latest IP revision, add it 1st in the device id table. This way, we can add new matching compatible as 1st and maintain old compatible string for backwards compatibility. ex: compatible = "ti,am3352-rtc", "ti,da830-rtc"; Signed-off-by: Hebbar, Gururaja CC: mark.rutland@arm.com --- Changes in v3: - new patch :100644 100644 dc62cc3... 2f0968c... M drivers/rtc/rtc-omap.c drivers/rtc/rtc-omap.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index dc62cc3..2f0968c 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c @@ -330,12 +330,12 @@ static struct platform_device_id omap_rtc_devtype[] = { MODULE_DEVICE_TABLE(platform, omap_rtc_devtype); static const struct of_device_id omap_rtc_of_match[] = { - { .compatible = "ti,da830-rtc", - .data = &omap_rtc_devtype[OMAP_RTC_DATA_DA830_IDX], - }, { .compatible = "ti,am3352-rtc", .data = &omap_rtc_devtype[OMAP_RTC_DATA_AM335X_IDX], }, + { .compatible = "ti,da830-rtc", + .data = &omap_rtc_devtype[OMAP_RTC_DATA_DA830_IDX], + }, {}, }; MODULE_DEVICE_TABLE(of, omap_rtc_of_match);