summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port
diff options
context:
space:
mode:
authorEyal Harari <Eyal.Harari@freesacle.com>2014-08-24 11:57:07 (GMT)
committerRich Schmitt <B43082@freescale.com>2014-09-05 17:08:55 (GMT)
commit89e4d4b113dc6d78ab0f2db705bbbcd669efe3b4 (patch)
treecc5cd169e604213249141a011605e500942555bd /drivers/net/ethernet/freescale/fman/Peripherals/FM/Port
parent3d55c3c0173c7ebfcc75c0fb7d26533b6b90bc71 (diff)
downloadlinux-fsl-qoriq-89e4d4b113dc6d78ab0f2db705bbbcd669efe3b4.tar.xz
FMD: DSAR: fixed compatibility of structures t_FmPortDsarOidsEntry and auto_res_snmp_entry
Signed-off-by: Eyal Harari <Eyal.Harari@freesacle.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/Peripherals/FM/Port')
-rw-r--r--drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
index ccfcf86..e5ffdb4 100644
--- a/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
+++ b/drivers/net/ethernet/freescale/fman/Peripherals/FM/Port/fm_port.c
@@ -5708,14 +5708,14 @@ t_Error FM_PORT_EnterDsar(t_Handle h_FmPortRx, t_FmPortDsarParams *params)
{
WRITE_UINT16(snmpOid->oidSize, snmpSrc->p_OidsTbl[i].oidSize);
WRITE_UINT16(snmpOid->resSize, snmpSrc->p_OidsTbl[i].resSize);
- Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].p_Oid, snmpSrc->p_OidsTbl[i].oidSize);
+ Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].oidVal, snmpSrc->p_OidsTbl[i].oidSize);
WRITE_UINT32(snmpOid->p_Oid, PTR_TO_UINT(charPointer) - fmMuramVirtBaseAddr);
charPointer += snmpSrc->p_OidsTbl[i].oidSize;
if (snmpSrc->p_OidsTbl[i].resSize <= 4)
- WRITE_UINT32(snmpOid->resValOrPtr, snmpSrc->p_OidsTbl[i].resValOrPtr);
+ WRITE_UINT32(snmpOid->resValOrPtr, *snmpSrc->p_OidsTbl[i].resVal);
else
{
- Mem2IOCpy32(charPointer, UINT_TO_PTR(snmpSrc->p_OidsTbl[i].resValOrPtr), snmpSrc->p_OidsTbl[i].resSize);
+ Mem2IOCpy32(charPointer, snmpSrc->p_OidsTbl[i].resVal, snmpSrc->p_OidsTbl[i].resSize);
WRITE_UINT32(snmpOid->resValOrPtr, PTR_TO_UINT(charPointer) - fmMuramVirtBaseAddr);
charPointer += snmpSrc->p_OidsTbl[i].resSize;
}