Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ae342fd authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Vinod Koul
Browse files

dmaengine: pl330: Remove unused dmac_reset callback



The dmac_reset() callaback of the pl330_info struct is always set to NULL, so
remove it.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent fa01ef38
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -296,11 +296,6 @@ struct pl330_info {
	void	*pl330_data;
	void	*pl330_data;
	/* Populated by the PL330 core driver during pl330_add */
	/* Populated by the PL330 core driver during pl330_add */
	struct pl330_config	pcfg;
	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)
	if (pi->pl330_data)
		return -EINVAL;
		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;
	regs = pi->base;


	/* Check if we can handle this DMAC */
	/* Check if we can handle this DMAC */