From 4b9197d6174bd2990c7bb60698f6b95bd352571f Mon Sep 17 00:00:00 2001 From: P L Sai Krishna Date: Thu, 26 Feb 2015 17:34:43 +0530 Subject: [PATCH] devcfg; Removed IAR compilation errors in example. This patch removes IAR compilation error in example by removing the u32 typecast since it is expecting (void *) Signed-off-by: P L Sai Krishna --- .../drivers/devcfg/examples/xdevcfg_reg_readback_example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_reg_readback_example.c b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_reg_readback_example.c index 843ce15d..43f03dde 100755 --- a/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_reg_readback_example.c +++ b/XilinxProcessorIPLib/drivers/devcfg/examples/xdevcfg_reg_readback_example.c @@ -381,8 +381,8 @@ int XDcfg_GetConfigReg(XDcfg *DcfgInstancePtr, u32 ConfigReg, u32 *RegData) CmdBuf[CmdIndex++] = 0x20000000; /* Type 1 NOOP Word 0 */ CmdBuf[CmdIndex++] = 0x20000000; /* Type 1 NOOP Word 0 */ - XDcfg_Transfer(&DcfgInstance, (u32)(&CmdBuf[0]), - CmdIndex, (u32)RegData, 1, XDCFG_PCAP_READBACK); + XDcfg_Transfer(&DcfgInstance, (&CmdBuf[0]), + CmdIndex, RegData, 1, XDCFG_PCAP_READBACK); /* Poll IXR_DMA_DONE */ IntrStsReg = XDcfg_IntrGetStatus(DcfgInstancePtr);