From: Tudor Ambarus <tudor-dan.amba...@nxp.com>

Signed-off-by: Tudor Ambarus <tudor-dan.amba...@nxp.com>
Signed-off-by: Horia Geantă <horia.gea...@nxp.com>
---
 drivers/crypto/caam/ctrl.c   | 1 -
 drivers/crypto/caam/intern.h | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index dd353e342c12..7338f15b8674 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -444,7 +444,6 @@ static int caam_probe(struct platform_device *pdev)
 
        dev = &pdev->dev;
        dev_set_drvdata(dev, ctrlpriv);
-       ctrlpriv->pdev = pdev;
        nprop = pdev->dev.of_node;
 
        /* Enable clocking */
diff --git a/drivers/crypto/caam/intern.h b/drivers/crypto/caam/intern.h
index 85b6c5835b8f..9e3f3e0a7ffa 100644
--- a/drivers/crypto/caam/intern.h
+++ b/drivers/crypto/caam/intern.h
@@ -64,12 +64,9 @@ struct caam_drv_private_jr {
  * Driver-private storage for a single CAAM block instance
  */
 struct caam_drv_private {
-
-       struct device *dev;
 #ifdef CONFIG_CAAM_QI
        struct device *qidev;
 #endif
-       struct platform_device *pdev;
 
        /* Physical-presence section */
        struct caam_ctrl __iomem *ctrl; /* controller region */
-- 
2.12.0.264.gd6db3f216544

Reply via email to