Skip to contentSkip to conversation

crypto: rockchip: pass crypto_info to irq handler

PATCH In review Rosen Penev 2 participants 2 messages Aug 11 – Sep 4

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: rockchip: pass crypto_info to irq handler

The irq handler takes the platform device and calls platform_get_drvdata() to recover the driver data. Pass the driver data directly as the devm_request_irq() argument instead, dropping the platform_get_drvdata() call.

Assisted-by opencode:deepseek-v4-flash-free
---
 drivers/crypto/rockchip/rk3288_crypto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/crypto/rockchip/rk3288_crypto.c +2 -2
index 7cb1316b6f18..b2b629fffc05 100644
@@ -163,7 +163,7 @@ static void rk_crypto_pm_exit(struct rk_crypto_info *rkdev)
 
 static irqreturn_t rk_crypto_irq_handle(int irq, void *dev_id)
 {
-	struct rk_crypto_info *dev  = platform_get_drvdata(dev_id);
+	struct rk_crypto_info *dev = dev_id;
 	u32 interrupt_status;
 
 	interrupt_status = CRYPTO_READ(dev, RK_CRYPTO_INTSTS);
@@ -363,7 +363,7 @@ static int rk_crypto_probe(struct platform_device *pdev)
 
 	err = devm_request_irq(&pdev->dev, crypto_info->irq,
 			       rk_crypto_irq_handle, IRQF_SHARED,
-			       "rk-crypto", pdev);
+			       "rk-crypto", crypto_info);
 
 	if (err)
 		goto err_crypto;
Signature · 1 line
2.55.0
maintainer
#1 lore raw
Quoted 10 lines · Rosen Penev

The irq handler takes the platform device and calls platform_get_drvdata() to recover the driver data. Pass the driver data directly as the devm_request_irq() argument instead, dropping the platform_get_drvdata() call.

Assisted-by opencode:deepseek-v4-flash-free
---
 drivers/crypto/rockchip/rk3288_crypto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt