|
@@ -52,8 +52,6 @@ static int caam_probe(struct platform_device *pdev)
|
|
|
struct caam_ctrl __iomem *ctrl;
|
|
|
struct caam_full __iomem *topregs;
|
|
|
struct caam_drv_private *ctrlpriv;
|
|
|
- struct caam_deco **deco;
|
|
|
- u32 deconum;
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
struct caam_perfmon *perfmon;
|
|
|
#endif
|
|
@@ -92,17 +90,6 @@ static int caam_probe(struct platform_device *pdev)
|
|
|
if (sizeof(dma_addr_t) == sizeof(u64))
|
|
|
dma_set_mask(dev, DMA_BIT_MASK(36));
|
|
|
|
|
|
- /* Find out how many DECOs are present */
|
|
|
- deconum = (rd_reg64(&topregs->ctrl.perfmon.cha_num) &
|
|
|
- CHA_NUM_DECONUM_MASK) >> CHA_NUM_DECONUM_SHIFT;
|
|
|
-
|
|
|
- ctrlpriv->deco = kmalloc(deconum * sizeof(struct caam_deco *),
|
|
|
- GFP_KERNEL);
|
|
|
-
|
|
|
- deco = (struct caam_deco __force **)&topregs->deco;
|
|
|
- for (d = 0; d < deconum; d++)
|
|
|
- ctrlpriv->deco[d] = deco[d];
|
|
|
-
|
|
|
/*
|
|
|
* Detect and enable JobRs
|
|
|
* First, find out how many ring spec'ed, allocate references
|