[PATCH 2/9] dma: pl330: use dma_addr_t for describing bus addresses
Grant Likely
grant.likely at secretlab.ca
Wed Jun 12 08:32:02 EST 2013
On Mon, 10 Jun 2013 19:34:38 +0100, Will Deacon <will.deacon at arm.com> wrote:
> The microcode bus address (pl330_dmac.mcode_bus) is currently a u32,
> which fails to compile when building on a system with 64-bit bus
> addresses.
>
> This patch uses dma_addr_t to represent the address instead.
>
> Cc: Jassi Brar <jaswinder.singh at linaro.org>
> Cc: Vinod Koul <vinod.koul at intel.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>
Acked-by: Grant Likely <grant.likely at linaro.org>
> ---
> drivers/dma/pl330.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index 22e2a8f..f1bc593 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -501,7 +501,7 @@ struct pl330_dmac {
> /* Maximum possible events/irqs */
> int events[32];
> /* BUS address of MicroCode buffer */
> - u32 mcode_bus;
> + dma_addr_t mcode_bus;
> /* CPU address of MicroCode buffer */
> void *mcode_cpu;
> /* List of all Channel threads */
> --
> 1.8.2.2
>
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.
More information about the devicetree-discuss
mailing list