From patchwork Mon Apr 22 09:51:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16290 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68A8425DF0 for ; Mon, 22 Apr 2013 09:53:05 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id j8sf1014534qah.8 for ; Mon, 22 Apr 2013 02:52:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer: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=4zz5nx2Chr/7HCVwf0Z+kGvDF9ydQ6anvFztjVTY/Fw=; b=PYFjP5l/H3X2nu/QmDj2dXwf5WUzRrEkaq94IbpuBMwfCtSg+ua/yl66gvD9N0Sx21 /k9JrlEB5UIDAoxgPZIzSmkkXd91Hw8O4/s/VvZHZB2qDi3P/7Vy75fkbS/1B+MNVPCH dMscVvPvvx5ph8BTfTnXAdGupEY58ZpCFwY1+sUebJRWDPtGolPlI2EJQsBpHdDUloM/ rbc5ahPYEFwseVr5y/pVoqbJOl0BelW1UCZcWKN0utm6LffMvESViz6N/vSA6tKSP/37 SGcK9qWBvVIh4IA5fmSx+OAjcweldq2goPc6dC8Spyb2qJ7JVB8Lq4ZS4qbMYjXH4C7W KfhA== X-Received: by 10.236.137.14 with SMTP id x14mr8815381yhi.4.1366624339320; Mon, 22 Apr 2013 02:52:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.10 with SMTP id o10ls2916343qeo.69.gmail; Mon, 22 Apr 2013 02:52:19 -0700 (PDT) X-Received: by 10.52.115.1 with SMTP id jk1mr11849959vdb.95.1366624339203; Mon, 22 Apr 2013 02:52:19 -0700 (PDT) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [2607:f8b0:400c:c02::22e]) by mx.google.com with ESMTPS id jj7si15528331vcb.80.2013.04.22.02.52.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:52:19 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22e; Received: by mail-vb0-f46.google.com with SMTP id 11so5535096vbe.19 for ; Mon, 22 Apr 2013 02:52:19 -0700 (PDT) X-Received: by 10.221.0.199 with SMTP id nn7mr18630352vcb.14.1366624339092; Mon, 22 Apr 2013 02:52:19 -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.58.127.98 with SMTP id nf2csp68652veb; Mon, 22 Apr 2013 02:52:18 -0700 (PDT) X-Received: by 10.204.174.143 with SMTP id t15mr10294069bkz.37.1366624336843; Mon, 22 Apr 2013 02:52:16 -0700 (PDT) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx.google.com with SMTP id x41si30047616eey.104.2013.04.22.02.52.06 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:52:16 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.149; Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUIRXLQ6VEdg1mtQJwBoMrm/UGwjfgr@postini.com; Mon, 22 Apr 2013 09:52:16 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 976BC1F0; Mon, 22 Apr 2013 09:52:02 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8E3B1486B; Mon, 22 Apr 2013 09:51:56 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id D2DF0A8074; Mon, 22 Apr 2013 11:51:57 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 22 Apr 2013 11:52:01 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 04/23] pinctrl: u300 device tree support Date: Mon, 22 Apr 2013 11:51:53 +0200 Message-ID: <1366624313-6225-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmOOpXDgnspWklzSb6P/C6xNIf9Q/cr2YdkXbajlKpiju5vXrn1c3I3OXPZX0Zl8yPugpwX X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22e 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 adds a simple device tree compat string for the U300 pin controller. The base address is already passed properly as a resource and everything works fine. Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-u300.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c index 2b57725..ae0a460 100644 --- a/drivers/pinctrl/pinctrl-u300.c +++ b/drivers/pinctrl/pinctrl-u300.c @@ -1105,10 +1105,17 @@ static int u300_pmx_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id u300_pinctrl_match[] = { + { .compatible = "stericsson,pinctrl-u300" }, + {}, +}; + + static struct platform_driver u300_pmx_driver = { .driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, + .of_match_table = u300_pinctrl_match, }, .probe = u300_pmx_probe, .remove = u300_pmx_remove,