From patchwork Fri May 31 09:18:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17326 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 954F925CAB for ; Fri, 31 May 2013 09:20:44 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id d10sf1622709vea.4 for ; Fri, 31 May 2013 02:20:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=l73A3QuVWp6HEXQRZs3FWC7crJ489TaKMn9bctabuhY=; b=M6wQMr+bsE3MvpHYJvpXca9UshHvGzj9Cyg+DHPZsL/+WnxzX2BYjT2OQW4Vv+9JgW nfPeHwi7NPf+cRFCZer0kKW5InywBIF6Sj5YmiBcGDe1eDwQ2XkrT7ScSwo+4PaRvfHy nTvEN01MnqfmDI9NvUfEoQgnGR29WLS5jlPraVsp6FO/8AYDuflpFk+oQ6QPfmIX1PK5 gqLR3jSBqmhTaNae6dZxl52JSCGw8/53SPoI9ecfSuQFdJu8PbNkikuv47x03FI3pqfo TBVog0hgxxBlNCSjQgFa5Y1pz47fLALCjTFOdy3/q28bc26EYA9gcQAhqQapjGuffqR6 wzig== X-Received: by 10.236.142.11 with SMTP id h11mr5932581yhj.55.1369992044349; Fri, 31 May 2013 02:20:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.102 with SMTP id a6ls816046qep.59.gmail; Fri, 31 May 2013 02:20:44 -0700 (PDT) X-Received: by 10.59.6.101 with SMTP id ct5mr9251696ved.8.1369992044194; Fri, 31 May 2013 02:20:44 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id bs2si27799326veb.23.2013.05.31.02.20.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ht10so897173vcb.32 for ; Fri, 31 May 2013 02:20:44 -0700 (PDT) X-Received: by 10.52.120.113 with SMTP id lb17mr8007549vdb.1.1369992044091; Fri, 31 May 2013 02:20:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.229.199 with SMTP id jj7csp42404vcb; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-Received: by 10.15.63.129 with SMTP id m1mr12881173eex.108.1369992042502; Fri, 31 May 2013 02:20:42 -0700 (PDT) Received: from eu1sys200aog121.obsmtp.com (eu1sys200aog121.obsmtp.com [207.126.144.151]) by mx.google.com with SMTP id w42si5810013eeo.125.2013.05.31.02.20.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:42 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.151 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.151; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob121.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrSNkCmIjQmbC1YioZWCK1vYc23MGS@postini.com; Fri, 31 May 2013 09:20:42 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 04BC9EE; Fri, 31 May 2013 09:20:03 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id B14BC16AC; Fri, 31 May 2013 09:20:03 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id C1E9A24C07C; Fri, 31 May 2013 11:19:57 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Fri, 31 May 2013 11:20:02 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij , Alessandro Zummo Subject: [PATCH 10/39] rtc: coh901331: add devicetree support Date: Fri, 31 May 2013 11:18:45 +0200 Message-ID: <1369991954-17406-11-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> References: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQleQL4C7PFNL2pskxlidBim3bEYqiIM9QU+uDtP4LPxe44MHvIvrIx0jra54wqspeiD62qv X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Linus Walleij This add devicetree probe support to the COH 901 331 RTC driver. Cc: Alessandro Zummo Signed-off-by: Linus Walleij --- Hi Alessandro, I'm seeking an ACK to take this patch through the ARM SoC tree along with the code making use of it. --- drivers/rtc/rtc-coh901331.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c index 93c0658..ad6863a 100644 --- a/drivers/rtc/rtc-coh901331.c +++ b/drivers/rtc/rtc-coh901331.c @@ -274,11 +274,17 @@ static void coh901331_shutdown(struct platform_device *pdev) clk_disable_unprepare(rtap->clk); } +static const struct of_device_id coh901331_dt_match[] = { + { .compatible = "stericsson,coh901331" }, + {}, +}; + static struct platform_driver coh901331_driver = { .driver = { .name = "rtc-coh901331", .owner = THIS_MODULE, .pm = &coh901331_pm_ops, + .of_match_table = coh901331_dt_match, }, .remove = __exit_p(coh901331_remove), .shutdown = coh901331_shutdown,