aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2014-05-08 09:58:12 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-05-08 09:58:12 -0400
commit96fc70b63c51199b96bee1b90c939fa75d611332 (patch)
treed5fcb3d5dee49de447b355a4f4addd00aeeb0953 /drivers/crypto
parentc568398aa05f852592d0e2b1dc893e6c5c14971c (diff)
crypto: s5p-sss - Use platform_get_irq() instead of _byname()
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 Chatradhi <ch.naveen@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> CC: David S. Miller <davem@davemloft.net> CC: <linux-samsung-soc@vger.kernel.org> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/s5p-sss.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
index be45762f390a..2876fa37d1f9 100644
--- a/drivers/crypto/s5p-sss.c
+++ b/drivers/crypto/s5p-sss.c
@@ -587,29 +587,29 @@ static int s5p_aes_probe(struct platform_device *pdev)
587 587
588 spin_lock_init(&pdata->lock); 588 spin_lock_init(&pdata->lock);
589 589
590 pdata->irq_hash = platform_get_irq_byname(pdev, "hash"); 590 pdata->irq_fc = platform_get_irq(pdev, 0);
591 if (pdata->irq_hash < 0) { 591 if (pdata->irq_fc < 0) {
592 err = pdata->irq_hash; 592 err = pdata->irq_fc;
593 dev_warn(dev, "hash interrupt is not available.\n"); 593 dev_warn(dev, "feed control interrupt is not available.\n");
594 goto err_irq; 594 goto err_irq;
595 } 595 }
596 err = devm_request_irq(dev, pdata->irq_hash, s5p_aes_interrupt, 596 err = devm_request_irq(dev, pdata->irq_fc, s5p_aes_interrupt,
597 IRQF_SHARED, pdev->name, pdev); 597 IRQF_SHARED, pdev->name, pdev);
598 if (err < 0) { 598 if (err < 0) {
599 dev_warn(dev, "hash interrupt is not available.\n"); 599 dev_warn(dev, "feed control interrupt is not available.\n");
600 goto err_irq; 600 goto err_irq;
601 } 601 }
602 602
603 pdata->irq_fc = platform_get_irq_byname(pdev, "feed control"); 603 pdata->irq_hash = platform_get_irq(pdev, 1);
604 if (pdata->irq_fc < 0) { 604 if (pdata->irq_hash < 0) {
605 err = pdata->irq_fc; 605 err = pdata->irq_hash;
606 dev_warn(dev, "feed control interrupt is not available.\n"); 606 dev_warn(dev, "hash interrupt is not available.\n");
607 goto err_irq; 607 goto err_irq;
608 } 608 }
609 err = devm_request_irq(dev, pdata->irq_fc, s5p_aes_interrupt, 609 err = devm_request_irq(dev, pdata->irq_hash, s5p_aes_interrupt,
610 IRQF_SHARED, pdev->name, pdev); 610 IRQF_SHARED, pdev->name, pdev);
611 if (err < 0) { 611 if (err < 0) {
612 dev_warn(dev, "feed control interrupt is not available.\n"); 612 dev_warn(dev, "hash interrupt is not available.\n");
613 goto err_irq; 613 goto err_irq;
614 } 614 }
615 615