Misra C Fixes for dra72x
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / src / platforms / sample_dra72x_arm_int_reg.c
index 1e88e5d73a277d6e75926a08f2c8164f627b8624..db889423b6d141e9588688e2601bea6d4fdabba2 100644 (file)
@@ -326,12 +326,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;