Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbaAIE6Y (ORCPT ); Wed, 8 Jan 2014 23:58:24 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:54532 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751142AbaAIE6V (ORCPT ); Wed, 8 Jan 2014 23:58:21 -0500 X-AuditID: cbfee690-b7f266d00000287c-91-52ce2c6ba42b From: Naveen Krishna Chatradhi To: linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vzapolskiy@gmail.com, herbert@gondor.apana.org.au, naveenkrishna.ch@gmail.com, cpgs@samsung.com, tomasz.figa@gmail.com, Naveen Krishna Ch , "David S. Miller" Subject: [PATCH 1/6 v2] crypto:s5p-sss: Use platform_get_irq() instead of _byname() Date: Thu, 09 Jan 2014 10:28:37 +0530 Message-id: <1389243517-13033-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1389095509-14357-2-git-send-email-ch.naveen@samsung.com> References: <1389095509-14357-2-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42JZI2JSq5utcy7I4P1BQYu7zw8zWrw8pGkx 53wLi0X3KxmL+/d+Mllc3jWHzWLG+X1MFou2/We2WLXrD6PF2TmHmBy4PLasvMnksXPWXXaP bQdUPfq2rGL0+LxJLoA1issmJTUnsyy1SN8ugSvj/a8L7AXPRSr2vHjM2MA4UbCLkZNDQsBE YtHLc4wQtpjEhXvr2boYuTiEBJYySvSuuMHcxcgBVrRzTxREfDqjxJetf1kgnH4midcn57OC dLMJmEkcXLSaHcQWEXCW+N28hhWkiFngE6NEw/pVYEXCAqESJ69tZQaxWQRUJVouvmcDsXkF XCUu3d7FArFNQWLOJBuQMKeAm8SB73uYQGwhoJLve46AXSchsI1dYvH9e2wQcwQkvk0+BNUr K7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cUttfXZDm2fLJpTEqRTZ1 xYYC3YXiiTf+vSjN7klT47v99+Ij049bXi5/cEjh7mu/hr+7tu/UPOfy1Xe9TtcsvrKzS06e b5IwfeCwozVS7ffXs34l9+4uirvBN29fRZDwlph7DzaVNO9rTy5z4bYJEH5yNdXZ8PbhuPvi SizFGYmGWsxFxYkAyeO/0/ICAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Naveen Krishna Ch This patch uses the platform_get_irq() instead of the platform_get_irq_byname(). Making feeder control interrupt as resource "0" and hash interrupt as "1". reasons for this change. 1. Cannot find any Arch which is currently using this driver 2. Samsung Exynos4 and 5 SoCs only use the feeder control interrupt 3. Patches adding support for DT and H/W version are in pipeline Signed-off-by: Naveen Krishna Ch CC: Herbert Xu CC: David S. Miller CC: Vladimir Zapolskiy TO: CC: --- Changes since v1: A typo fixed, from err "pdata->irq_hash;" to "pdata->irq_fc;" drivers/crypto/s5p-sss.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index cf149b1..93cddeb 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -592,29 +592,29 @@ static int s5p_aes_probe(struct platform_device *pdev) pdata->ioaddr = devm_ioremap(dev, res->start, resource_size(res)); - pdata->irq_hash = platform_get_irq_byname(pdev, "hash"); - if (pdata->irq_hash < 0) { - err = pdata->irq_hash; - dev_warn(dev, "hash interrupt is not available.\n"); + pdata->irq_fc = platform_get_irq(pdev, 0); + if (pdata->irq_fc < 0) { + err = pdata->irq_fc; + dev_warn(dev, "feed control interrupt is not available.\n"); goto err_irq; } - err = devm_request_irq(dev, pdata->irq_hash, s5p_aes_interrupt, + err = devm_request_irq(dev, pdata->irq_fc, s5p_aes_interrupt, IRQF_SHARED, pdev->name, pdev); if (err < 0) { - dev_warn(dev, "hash interrupt is not available.\n"); + dev_warn(dev, "feed control interrupt is not available.\n"); goto err_irq; } - pdata->irq_fc = platform_get_irq_byname(pdev, "feed control"); - if (pdata->irq_fc < 0) { - err = pdata->irq_fc; - dev_warn(dev, "feed control interrupt is not available.\n"); + pdata->irq_hash = platform_get_irq(pdev, 1); + if (pdata->irq_hash < 0) { + err = pdata->irq_hash; + dev_warn(dev, "hash interrupt is not available.\n"); goto err_irq; } - err = devm_request_irq(dev, pdata->irq_fc, s5p_aes_interrupt, + err = devm_request_irq(dev, pdata->irq_hash, s5p_aes_interrupt, IRQF_SHARED, pdev->name, pdev); if (err < 0) { - dev_warn(dev, "feed control interrupt is not available.\n"); + dev_warn(dev, "hash interrupt is not available.\n"); goto err_irq; } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/