From patchwork Thu May 16 11:27:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 17003 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 98DE52391B for ; Thu, 16 May 2013 11:28:23 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id q16sf2040417vbe.11 for ; Thu, 16 May 2013 04:27:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references: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; bh=ZN+rm172tu4si+Uaud4MIRUBvc8lcjXCJ+K/9YR+ei4=; b=c0JOeuSGcMn0d2xlPCYrraVjV3Q+r/Jgn5Qw/txCzsj3mv7BUXUs7CTrBpKBXKX8GZ wmJM81/9ePJmlY+5z4NrJuWwEZypTu19gi9Dhe35KHrGZdRTTDMtEg9oi7rMNzEgqcN6 QHGdssKuiCG01aqx4YadON0lO6wy/VQFQiOJE05ZQXCYVwrGPvuKo9KqtQFpIhheaTYm t49ruGeTcmH9QwGYqQTiyAFwPHetEh275FMUxoT08AWKJQtN8h6iGSvOsqtmvjgYQYKQ Fo5hDhBApKmPnDDCKanjr/3T5lNqDoVFbVOZcYEjFbyiNCu+JGsnwDOzbPYXxBgmIwXU +WTw== X-Received: by 10.224.215.194 with SMTP id hf2mr25684472qab.0.1368703664558; Thu, 16 May 2013 04:27:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.27.161 with SMTP id u1ls1200876qeg.57.gmail; Thu, 16 May 2013 04:27:44 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr674732vdi.56.1368703664391; Thu, 16 May 2013 04:27:44 -0700 (PDT) Received: from mail-vb0-x22f.google.com (mail-vb0-x22f.google.com [2607:f8b0:400c:c02::22f]) by mx.google.com with ESMTPS id gr7si3675006vdc.90.2013.05.16.04.27.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 04:27:44 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22f 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::22f; Received: by mail-vb0-f47.google.com with SMTP id x14so1276946vbb.6 for ; Thu, 16 May 2013 04:27:44 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr674728vdi.56.1368703664222; Thu, 16 May 2013 04:27: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.126.138 with SMTP id c10csp60047vcs; Thu, 16 May 2013 04:27:43 -0700 (PDT) X-Received: by 10.180.90.43 with SMTP id bt11mr23177561wib.30.1368703663087; Thu, 16 May 2013 04:27:43 -0700 (PDT) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [2a00:1450:400c:c05::22a]) by mx.google.com with ESMTPS id gt8si1369118wib.42.2013.05.16.04.27.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 04:27:43 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::22a is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::22a; Received: by mail-wi0-f170.google.com with SMTP id hr14so6516004wib.5 for ; Thu, 16 May 2013 04:27:42 -0700 (PDT) X-Received: by 10.180.205.200 with SMTP id li8mr23893064wic.15.1368703662450; Thu, 16 May 2013 04:27:42 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id fz8sm3159222wib.2.2013.05.16.04.27.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 04:27:41 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones , Herbert Xu , linux-crypto@vger.kernel.org Subject: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver Date: Thu, 16 May 2013 12:27:25 +0100 Message-Id: <1368703646-26418-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368703646-26418-1-git-send-email-lee.jones@linaro.org> References: <1368703646-26418-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmShDWcqC6v7skUtyq7JG+8JaaV9VO0PFw2k9xI/AwTEHJwzh+koukdQCu8aPFywM/SJdf+ X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22f 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: , By providing an OF match table with a suitable compatible string, we can ensure the ux500-crypt driver is probed by supplying an associated DT node in a given platform's Device Tree. Cc: Herbert Xu Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/ux500/cryp/cryp_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 4f8b11a..d3940b7 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1772,6 +1772,11 @@ static int ux500_cryp_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume); +static const struct of_device_id ux500_cryp_match[] = { + { .compatible = "stericsson,ux500-cryp" }, + { }, +}; + static struct platform_driver cryp_driver = { .probe = ux500_cryp_probe, .remove = ux500_cryp_remove, @@ -1779,6 +1784,7 @@ static struct platform_driver cryp_driver = { .driver = { .owner = THIS_MODULE, .name = "cryp1", + .of_match_table = ux500_cryp_match, .pm = &ux500_cryp_pm, } };