dmaengine: pl330: Remove unused dmac_reset callback
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 6 Jul 2014 18:32:21 +0000 (20:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 15 Jul 2014 16:31:03 +0000 (22:01 +0530)
The dmac_reset() callaback of the pl330_info struct is always set to NULL, so
remove it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c

index 9121edeb27275ab710f5308d4d5b655bd1ae3a63..f23c5f0b3dacb515084c51d53663a1ced6c554f9 100644 (file)
@@ -296,11 +296,6 @@ struct pl330_info {
        void    *pl330_data;
        /* Populated by the PL330 core driver during pl330_add */
        struct pl330_config     pcfg;
-       /*
-        * If the DMAC has some reset mechanism, then the
-        * client may want to provide pointer to the method.
-        */
-       void (*dmac_reset)(struct pl330_info *pi);
 };
 
 /**
@@ -2024,13 +2019,6 @@ static int pl330_add(struct pl330_info *pi)
        if (pi->pl330_data)
                return -EINVAL;
 
-       /*
-        * If the SoC can perform reset on the DMAC, then do it
-        * before reading its configuration.
-        */
-       if (pi->dmac_reset)
-               pi->dmac_reset(pi);
-
        regs = pi->base;
 
        /* Check if we can handle this DMAC */