mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
crypto: aspeed - Propagate platform_get_irq() errors
platform_get_irq() returns a positive IRQ number on success and a negative error code on failure. aspeed_acry_probe() and aspeed_hace_probe() already detect negative returns, but both convert every failure to -ENXIO. Return the original error code so callers can handle errors such as -EPROBE_DEFER correctly. Fixes:2f1cf4e50c("crypto: aspeed - Add ACRY RSA driver") Fixes:70513e1d65("crypto: aspeed - Fix check for platform_get_irq() errors") Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
cad76142aa
commit
eed5fde796
|
|
@ -728,7 +728,7 @@ static int aspeed_acry_probe(struct platform_device *pdev)
|
|||
/* Get irq number and register it */
|
||||
acry_dev->irq = platform_get_irq(pdev, 0);
|
||||
if (acry_dev->irq < 0)
|
||||
return -ENXIO;
|
||||
return acry_dev->irq;
|
||||
|
||||
rc = devm_request_irq(dev, acry_dev->irq, aspeed_acry_irq, 0,
|
||||
dev_name(dev), acry_dev);
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ static int aspeed_hace_probe(struct platform_device *pdev)
|
|||
/* Get irq number and register it */
|
||||
hace_dev->irq = platform_get_irq(pdev, 0);
|
||||
if (hace_dev->irq < 0)
|
||||
return -ENXIO;
|
||||
return hace_dev->irq;
|
||||
|
||||
rc = devm_request_irq(&pdev->dev, hace_dev->irq, aspeed_hace_irq, 0,
|
||||
dev_name(&pdev->dev), hace_dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user