Misra C Fixes for dra72x
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / src / platforms / sample_dra72x_arm_int_reg.c
index 20fe9f5553460ccf84ad6e80385b09d748065f61..8fbd9e58e6d22d382acad50c25f81cf41013cce8 100644 (file)
@@ -330,12 +330,14 @@ EDMA3_DRV_Result sampleInitXbarEvt(EDMA3_DRV_Handle hEdma,
     EDMA3_DRV_Result retVal = EDMA3_DRV_SOK;
     const EDMA3_DRV_GblXbarToChanConfigParams *sampleXbarToChanConfig =
                                 &(sampleXbarChanInitConfig[edma3Id][dsp_num]);
+    uint32_t sampleMapXbarEvtToChanTemp = (uint32_t)&sampleMapXbarEvtToChan;
+    uint32_t sampleConfigScrTemp = (uint32_t)&sampleConfigScr;
     if (hEdma != NULL)
         {
         retVal = EDMA3_DRV_initXbarEventMap(hEdma,
                                                                        sampleXbarToChanConfig,
-                                                                       (EDMA3_DRV_mapXbarEvtToChan)&sampleMapXbarEvtToChan,
-                                                                       (EDMA3_DRV_xbarConfigScr)&sampleConfigScr);
+                                                                       (EDMA3_DRV_mapXbarEvtToChan)sampleMapXbarEvtToChanTemp,
+                                                                       (EDMA3_DRV_xbarConfigScr)sampleConfigScrTemp);
         }
 
     return retVal;