From patchwork Thu May 16 11:27:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 17004 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E160F2391B for ; Thu, 16 May 2013 11:28:24 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id m17sf210722vca.0 for ; Thu, 16 May 2013 04:27:45 -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=1Bagxf044R55KUuJFDKU2QmHP+ihEKOvKpX1+9p1TVE=; b=dFmVgWRuHT7tBoyCRNz+FO2iuRRTLqWdrMGStp33Uyf++W5ddLLZ6PWyC0ZiQGH40v hr9nhhDX7iIGIL7vOfyDspDH63Pqb0mTCTDD2f/uO6xsfAJGMJfpAzH7B0yo+Q4FW5CF bdmBoALTtcPCKMIdBFdxpNU+rmZYBifPPaFGNOUxYs7FxF9t7SxdGlJxGatPndLnu6C7 4Wg0Ua9mECGhWuyOLao+CYNpPFMgjHaXM/a5sIy5UqsFLnmdbSYQ69cGFNRjFsB9TiKp jEqFpo3aIqbq/DMH1fZ5W0Bjc7C/U1+80MKFCiuwe+S0zOfZ8UZM69tKwEzZzZEYLIoF JrgQ== X-Received: by 10.236.139.134 with SMTP id c6mr22085227yhj.7.1368703665908; Thu, 16 May 2013 04:27:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.5 with SMTP id 5ls1111681qey.92.gmail; Thu, 16 May 2013 04:27:45 -0700 (PDT) X-Received: by 10.58.106.77 with SMTP id gs13mr7161967veb.22.1368703665726; Thu, 16 May 2013 04:27:45 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id tn5si1120020vdc.65.2013.05.16.04.27.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 04:27:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 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.179; Received: by mail-vc0-f179.google.com with SMTP id hz10so116444vcb.24 for ; Thu, 16 May 2013 04:27:45 -0700 (PDT) X-Received: by 10.52.20.210 with SMTP id p18mr23208269vde.42.1368703665540; Thu, 16 May 2013 04:27:45 -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 c10csp60048vcs; Thu, 16 May 2013 04:27:44 -0700 (PDT) X-Received: by 10.180.185.179 with SMTP id fd19mr23582241wic.1.1368703664452; Thu, 16 May 2013 04:27:44 -0700 (PDT) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id gk1si1371470wic.34.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: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c03::234; Received: by mail-we0-f180.google.com with SMTP id n5so2456326wev.39 for ; Thu, 16 May 2013 04:27:44 -0700 (PDT) X-Received: by 10.181.12.1 with SMTP id em1mr23782740wid.4.1368703664039; Thu, 16 May 2013 04:27:44 -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.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 04:27:43 -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 6/6] crypto: ux500/hash - Enable DT probing of the driver Date: Thu, 16 May 2013 12:27:26 +0100 Message-Id: <1368703646-26418-7-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: ALoCoQkTfzpxrPT1PIWeasYfpgnvcnZCufM/kMVH9xPZkFGXbuEqiwW6jKP765AAQP88r4ldLXBv X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 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-hasht 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/hash/hash_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 9ca6fbb..f89fe8a 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -1981,6 +1981,11 @@ static int ux500_hash_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume); +static const struct of_device_id ux500_hash_match[] = { + { .compatible = "stericsson,ux500-hash" }, + { }, +}; + static struct platform_driver hash_driver = { .probe = ux500_hash_probe, .remove = ux500_hash_remove, @@ -1988,6 +1993,7 @@ static struct platform_driver hash_driver = { .driver = { .owner = THIS_MODULE, .name = "hash1", + .of_match_table = ux500_hash_match, .pm = &ux500_hash_pm, } };