[PATCH] mtd: fsl_ifc_nand: use more portable i/o accessors

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Thu Jan 17 08:53:01 EST 2013


On Fri, 2013-01-11 at 16:23 -0600, Kim Phillips wrote:
> in/out_be32 accessors are Power arch centric whereas
> ioread/writebe32 are available in other arches.
> 
> Since the IFC device registers are annotated big endian in
> fsl_ifc.h, the accessor annotations now match, resulting in the
> pleasant side-effect of this patch silencing sparse endian
> warnings such as the following:
> 
> drivers/mtd/nand/fsl_ifc_nand.c:179:19: warning: incorrect type in argument 1 (different base types)
> drivers/mtd/nand/fsl_ifc_nand.c:179:19:    expected unsigned int volatile [noderef] [usertype] <asn:2>*addr
> drivers/mtd/nand/fsl_ifc_nand.c:179:19:    got restricted __be32 [noderef] <asn:2>*<noident>
> 
> Signed-off-by: Kim Phillips <kim.phillips at freescale.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20130117/0e8782c6/attachment.sig>


More information about the linux-mtd mailing list