[v7, 2/6] fsl/fman: Add FMan support

David Miller davem at davemloft.net
Tue Nov 3 15:17:50 AEDT 2015


From: <igal.liberman at freescale.com>
Date: Mon, 2 Nov 2015 14:30:12 +0200

> +static int clear_iram(struct fman *fman)
> +{
> +	struct fman_iram_regs __iomem *iram;
> +	int i, count;
> +
> +	iram = (struct fman_iram_regs __iomem *)(fman->base_addr + IMEM_OFFSET);

"fman->base_addr" is of type "void __iomem *", therefore no cast should
be necessary at all.

Please audit your entire driver submission for this problem.

THanks.


More information about the Linuxppc-dev mailing list